pub struct Struct {
pub name: Option<String>,
pub fields: BTreeMap<String, Value>,
pub is_anonymous: bool,
}Expand description
Fields§
§name: Option<String>§fields: BTreeMap<String, Value>§is_anonymous: boolImplementations§
Source§impl Struct
impl Struct
pub fn new(name: &str) -> Self
pub fn insert(&mut self, key: &str, value: Value)
pub fn get(&self, key: &str) -> Option<&Value>
pub fn set_name(&mut self, name: &str)
pub fn parse_style(s: &str) -> Result<Self, Error>
pub fn parse_template(s: &str) -> Result<Self, Error>
Trait Implementations§
impl StructuralPartialEq for Struct
Auto Trait Implementations§
impl Freeze for Struct
impl RefUnwindSafe for Struct
impl Send for Struct
impl Sync for Struct
impl Unpin for Struct
impl UnwindSafe for Struct
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