pub struct Compound {
pub type_id: String,
pub id: Option<String>,
pub attributes: Vec<(Option<String>, Attribute)>,
pub children: Vec<Node>,
}
Fields§
§type_id: String
§id: Option<String>
§attributes: Vec<(Option<String>, Attribute)>
§children: Vec<Node>
Implementations§
Source§impl Compound
impl Compound
pub fn new<S: Into<String>, B: IntoIterator<Item = (Option<String>, Attribute)>>( type_id: S, id: Option<&str>, attributes: B, children: Vec<Node>, ) -> Self
pub fn new_with_children<S: Into<String>>( type_id: S, id: Option<&str>, children: Vec<Node>, ) -> Self
pub fn new_with_attributes<S: Into<String>, B: IntoIterator<Item = (Option<String>, Attribute)>>( type_id: S, id: Option<&str>, attributes: B, ) -> Self
pub fn new_empty<S: Into<String>>(type_id: S, id: Option<&str>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Compound
impl<'de> Deserialize<'de> for Compound
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 Compound
Auto Trait Implementations§
impl Freeze for Compound
impl RefUnwindSafe for Compound
impl Send for Compound
impl Sync for Compound
impl Unpin for Compound
impl UnwindSafe for Compound
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