Struct serde_intermediate::schema::SchemaTypeStruct
source · [−]pub struct SchemaTypeStruct(pub HashMap<String, SchemaTypeInstance>);Tuple Fields
0: HashMap<String, SchemaTypeInstance>Implementations
sourceimpl SchemaTypeStruct
impl SchemaTypeStruct
pub fn field(
self,
name: impl ToString,
type_instance: impl Into<SchemaTypeInstance>
) -> Self
Trait Implementations
sourceimpl Clone for SchemaTypeStruct
impl Clone for SchemaTypeStruct
sourcefn clone(&self) -> SchemaTypeStruct
fn clone(&self) -> SchemaTypeStruct
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SchemaTypeStruct
impl Debug for SchemaTypeStruct
sourceimpl Default for SchemaTypeStruct
impl Default for SchemaTypeStruct
sourcefn default() -> SchemaTypeStruct
fn default() -> SchemaTypeStruct
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SchemaTypeStruct
impl<'de> Deserialize<'de> for SchemaTypeStruct
sourcefn 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
sourceimpl<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>,
sourcefn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = (N, TI)>,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = (N, TI)>,
Creates a value from an iterator. Read more
sourceimpl PartialEq<SchemaTypeStruct> for SchemaTypeStruct
impl PartialEq<SchemaTypeStruct> for SchemaTypeStruct
sourcefn eq(&self, other: &SchemaTypeStruct) -> bool
fn eq(&self, other: &SchemaTypeStruct) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more