pub struct Node {Show 13 fields
pub condition: Option<Condition>,
pub events: Vec<Event>,
pub classes: Vec<String>,
pub node: String,
pub attrs: Map<String>,
pub style: Map<String>,
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<String>,
pub text: Option<String>,
pub null: bool,
}Fields§
§condition: Option<Condition>§events: Vec<Event>§classes: Vec<String>§node: String§attrs: Map<String>§style: Map<String>§children: Vec<Node>§external_children: Vec<Node>§open_id: Option<String>§external_children_container: Vec<Vec<usize>>§children_style: Map<String>§text: Option<String>§null: boolImplementations§
Source§impl Node
impl Node
pub fn fixed_children_style(&self, index: usize) -> Map<String>
pub fn is_visible(&self, data: &DataDependenciesMap) -> bool
pub fn to_dnode( &self, style: &Map<String>, 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<String>, 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more