pub struct SerializedConstructor {
pub lc: i32,
pub type_: String,
pub id: Vec<String>,
pub kwargs: HashMap<String, Value>,
pub name: Option<String>,
pub graph: Option<HashMap<String, Value>>,
}Expand description
Serialized constructor representation.
Used when an object can be serialized and reconstructed from its constructor.
Fields§
§lc: i32The version of the serialization format.
type_: StringThe type of serialization. Always “constructor”.
id: Vec<String>The unique identifier of the object (namespace path).
kwargs: HashMap<String, Value>The constructor arguments.
name: Option<String>The name of the object (optional).
graph: Option<HashMap<String, Value>>The graph of the object (optional).
Implementations§
Trait Implementations§
Source§impl Clone for SerializedConstructor
impl Clone for SerializedConstructor
Source§fn clone(&self) -> SerializedConstructor
fn clone(&self) -> SerializedConstructor
Returns a duplicate 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 SerializedConstructor
impl Debug for SerializedConstructor
Source§impl<'de> Deserialize<'de> for SerializedConstructor
impl<'de> Deserialize<'de> for SerializedConstructor
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 From<SerializedConstructor> for Serialized
impl From<SerializedConstructor> for Serialized
Source§fn from(s: SerializedConstructor) -> Self
fn from(s: SerializedConstructor) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SerializedConstructor
impl PartialEq for SerializedConstructor
Source§impl Serialize for SerializedConstructor
impl Serialize for SerializedConstructor
impl StructuralPartialEq for SerializedConstructor
Auto Trait Implementations§
impl Freeze for SerializedConstructor
impl RefUnwindSafe for SerializedConstructor
impl Send for SerializedConstructor
impl Sync for SerializedConstructor
impl Unpin for SerializedConstructor
impl UnwindSafe for SerializedConstructor
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