pub struct PresentationPlan {
pub placement: ResolvedUiPlacement,
pub routes: Vec<ViewRoute>,
}Expand description
Validated mapping of one semantic document onto every view of a target.
Fields§
§placement: ResolvedUiPlacementResolved placement that every route in this plan must use.
routes: Vec<ViewRoute>One route per declared target view.
Implementations§
Source§impl PresentationPlan
impl PresentationPlan
Sourcepub fn build(
document: &UiDocument,
target: &DeviceTarget,
context: &PresentationContext,
) -> Result<Self, PresentationError>
pub fn build( document: &UiDocument, target: &DeviceTarget, context: &PresentationContext, ) -> Result<Self, PresentationError>
Validates semantic and target contracts then routes the document to every explicit view.
§Errors
Returns any document capability or target topology error without selecting a fallback placement or view.
Trait Implementations§
Source§impl Clone for PresentationPlan
impl Clone for PresentationPlan
Source§fn clone(&self) -> PresentationPlan
fn clone(&self) -> PresentationPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PresentationPlan
impl Debug for PresentationPlan
Source§impl<'de> Deserialize<'de> for PresentationPlan
impl<'de> Deserialize<'de> for PresentationPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PresentationPlan
impl PartialEq for PresentationPlan
Source§fn eq(&self, other: &PresentationPlan) -> bool
fn eq(&self, other: &PresentationPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PresentationPlan
impl Serialize for PresentationPlan
impl StructuralPartialEq for PresentationPlan
Auto Trait Implementations§
impl Freeze for PresentationPlan
impl RefUnwindSafe for PresentationPlan
impl Send for PresentationPlan
impl Sync for PresentationPlan
impl Unpin for PresentationPlan
impl UnsafeUnpin for PresentationPlan
impl UnwindSafe for PresentationPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more