pub struct GlowNode {
pub number: i32,
pub identifier: Option<String>,
pub description: Option<String>,
pub is_root: Option<bool>,
pub is_online: Option<bool>,
pub schema_identifiers: Option<String>,
pub template_reference: Option<EmberPath>,
pub children: Vec<GlowElement>,
}Expand description
A node in the Ember+ tree.
Fields§
§number: i32Node number (within parent)
identifier: Option<String>Identifier string
description: Option<String>Description string
is_root: Option<bool>Whether this is the root node
is_online: Option<bool>Whether this node is online
schema_identifiers: Option<String>Schema identifiers
template_reference: Option<EmberPath>Template reference
children: Vec<GlowElement>Child elements
Implementations§
Source§impl GlowNode
impl GlowNode
Sourcepub fn with_identifier(number: i32, identifier: &str) -> Self
pub fn with_identifier(number: i32, identifier: &str) -> Self
Create a node with identifier.
Sourcepub fn description(self, description: &str) -> Self
pub fn description(self, description: &str) -> Self
Set the description.
Sourcepub fn add_child(&mut self, child: GlowElement)
pub fn add_child(&mut self, child: GlowElement)
Add a child element.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlowNode
impl RefUnwindSafe for GlowNode
impl Send for GlowNode
impl Sync for GlowNode
impl Unpin for GlowNode
impl UnsafeUnpin for GlowNode
impl UnwindSafe for GlowNode
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