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