Struct pax_manifest::TemplateNodeDefinition
source · pub struct TemplateNodeDefinition {
pub type_id: TypeId,
pub control_flow_settings: Option<ControlFlowSettingsDefinition>,
pub settings: Option<Vec<SettingElement>>,
pub raw_comment_string: Option<String>,
}
Expand description
Represents an entry within a component template, e.g. a TemplateNodeDefinition
, and this is a compile-time
concern. Note the difference between compile-time definitions
and runtime instances
.
A compile-time TemplateNodeDefinition
corresponds to a single runtime RenderNode
instance.
Fields§
§type_id: TypeId
Reference to the unique string ID for a component, e.g. primitive::Frame
or component::Stacker
control_flow_settings: Option<ControlFlowSettingsDefinition>
Iff this TND is a control-flow node: parsed control flow attributes (slot/if/for)
settings: Option<Vec<SettingElement>>
IFF this TND is NOT a control-flow node: parsed key-value store of attribute definitions (like some_key="some_value"
)
raw_comment_string: Option<String>
IFF this TND is a comment node: raw comment string
Implementations§
source§impl TemplateNodeDefinition
impl TemplateNodeDefinition
pub fn get_node_type(&self) -> NodeType
Trait Implementations§
source§impl Clone for TemplateNodeDefinition
impl Clone for TemplateNodeDefinition
source§fn clone(&self) -> TemplateNodeDefinition
fn clone(&self) -> TemplateNodeDefinition
Returns a copy of the value. Read more
1.0.0 · 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 TemplateNodeDefinition
impl Debug for TemplateNodeDefinition
source§impl Default for TemplateNodeDefinition
impl Default for TemplateNodeDefinition
source§fn default() -> TemplateNodeDefinition
fn default() -> TemplateNodeDefinition
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TemplateNodeDefinition
impl<'de> Deserialize<'de> for TemplateNodeDefinition
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
Auto Trait Implementations§
impl Freeze for TemplateNodeDefinition
impl RefUnwindSafe for TemplateNodeDefinition
impl Send for TemplateNodeDefinition
impl Sync for TemplateNodeDefinition
impl Unpin for TemplateNodeDefinition
impl UnwindSafe for TemplateNodeDefinition
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
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.