pub struct Node {Show 14 fields
pub condition: Option<Condition>,
pub events: Vec<Event>,
pub classes: Vec<String>,
pub node: String,
pub attrs: Map,
pub style: Map,
pub children: Vec<Node>,
pub external_children: Vec<Node>,
pub open_id: Option<String>,
pub external_children_container: Vec<Vec<usize>>,
pub children_style: Map,
pub text: Option<String>,
pub null: bool,
pub locals: Map,
}Fields§
§condition: Option<Condition>§events: Vec<Event>§classes: Vec<String>§node: String§attrs: Map§style: Map§children: Vec<Node>§external_children: Vec<Node>§open_id: Option<String>§external_children_container: Vec<Vec<usize>>§children_style: Map§text: Option<String>§null: bool§locals: MapImplementations§
Source§impl Node
impl Node
pub fn fixed_children_style(&self, index: usize) -> Map
pub fn is_visible(&self, data: &DataDependenciesMap) -> bool
pub fn to_dnode( &self, style: &Map, data: &DataDependenciesMap, external_children: &mut Option<Vec<Self>>, external_open_id: &Option<String>, external_children_container: &[Vec<usize>], is_parent_visible: bool, parent_id: &str, is_last: bool, ) -> DNode
pub fn to_html( &self, style: &Map, data: &DataDependenciesMap, id: &str, ) -> String
pub fn get_target_node(&mut self, container: Vec<usize>) -> &mut Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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