pub struct StructValue {
pub ty: Arc<str>,
pub fields: Vec<(String, Value)>,
}Expand description
The contents of a struct value.
Fields§
§ty: Arc<str>The type name (module.TypeName).
fields: Vec<(String, Value)>Fields (in declaration order; name and value).
Trait Implementations§
Source§impl Clone for StructValue
impl Clone for StructValue
Source§impl Debug for StructValue
impl Debug for StructValue
Source§impl<'de> Deserialize<'de> for StructValue
impl<'de> Deserialize<'de> for StructValue
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
Source§impl PartialEq for StructValue
impl PartialEq for StructValue
Source§impl Serialize for StructValue
impl Serialize for StructValue
impl StructuralPartialEq for StructValue
Auto Trait Implementations§
impl Forget for StructValue
impl Freeze for StructValue
impl Move for StructValue
impl RefUnwindSafe for StructValue
impl Send for StructValue
impl Sync for StructValue
impl Unpin for StructValue
impl UnsafeUnpin 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