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: bool
Implementations
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
sourcefn 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
sourceimpl PartialEq<Node> for Node
impl PartialEq<Node> for Node
impl StructuralPartialEq for Node
Auto Trait Implementations
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more