pub struct StructValue {
pub fields: HashMap<String, Value>,
}
Expand description
Represent a structure value as defined in the spec.
Fields§
§fields: HashMap<String, Value>
The fields of struct as key-value pairs.
Implementations§
Trait Implementations§
Source§impl Clone for StructValue
impl Clone for StructValue
Source§fn clone(&self) -> StructValue
fn clone(&self) -> StructValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StructValue
impl Debug for StructValue
Source§impl Default for StructValue
impl Default for StructValue
Source§fn default() -> StructValue
fn default() -> StructValue
Returns the “default value” for a type. Read more
Source§impl From<StructValue> for Value
impl From<StructValue> for Value
Source§fn from(value: StructValue) -> Self
fn from(value: StructValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StructValue
impl PartialEq for StructValue
impl StructuralPartialEq for StructValue
Auto Trait Implementations§
impl Freeze for StructValue
impl RefUnwindSafe for StructValue
impl Send for StructValue
impl Sync for StructValue
impl Unpin for StructValue
impl UnwindSafe for StructValue
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