Struct serde_intermediate::schema::SchemaTypeStruct
source · pub struct SchemaTypeStruct(pub HashMap<String, SchemaTypeInstance>);
Tuple Fields§
§0: HashMap<String, SchemaTypeInstance>
Implementations§
source§impl SchemaTypeStruct
impl SchemaTypeStruct
pub fn field( self, name: impl ToString, type_instance: impl Into<SchemaTypeInstance> ) -> Self
Trait Implementations§
source§impl Clone for SchemaTypeStruct
impl Clone for SchemaTypeStruct
source§fn clone(&self) -> SchemaTypeStruct
fn clone(&self) -> SchemaTypeStruct
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 SchemaTypeStruct
impl Debug for SchemaTypeStruct
source§impl Default for SchemaTypeStruct
impl Default for SchemaTypeStruct
source§fn default() -> SchemaTypeStruct
fn default() -> SchemaTypeStruct
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SchemaTypeStruct
impl<'de> Deserialize<'de> for SchemaTypeStruct
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<N, TI> FromIterator<(N, TI)> for SchemaTypeStructwhere
N: ToString,
TI: Into<SchemaTypeInstance>,
impl<N, TI> FromIterator<(N, TI)> for SchemaTypeStructwhere N: ToString, TI: Into<SchemaTypeInstance>,
source§impl PartialEq<SchemaTypeStruct> for SchemaTypeStruct
impl PartialEq<SchemaTypeStruct> for SchemaTypeStruct
source§fn eq(&self, other: &SchemaTypeStruct) -> bool
fn eq(&self, other: &SchemaTypeStruct) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SchemaTypeStruct
impl Serialize for SchemaTypeStruct
impl StructuralPartialEq for SchemaTypeStruct
Auto Trait Implementations§
impl RefUnwindSafe for SchemaTypeStruct
impl Send for SchemaTypeStruct
impl Sync for SchemaTypeStruct
impl Unpin for SchemaTypeStruct
impl UnwindSafe for SchemaTypeStruct
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