Struct serde_intermediate::schema::SchemaTypeEnum
source · [−]pub struct SchemaTypeEnum(pub HashMap<String, SchemaTypeEnumVariant>);
Tuple Fields
0: HashMap<String, SchemaTypeEnumVariant>
Implementations
sourceimpl SchemaTypeEnum
impl SchemaTypeEnum
pub fn variant(
self,
name: impl ToString,
content: impl Into<SchemaTypeEnumVariant>
) -> Self
Trait Implementations
sourceimpl Clone for SchemaTypeEnum
impl Clone for SchemaTypeEnum
sourcefn clone(&self) -> SchemaTypeEnum
fn clone(&self) -> SchemaTypeEnum
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 more
sourceimpl Debug for SchemaTypeEnum
impl Debug for SchemaTypeEnum
sourceimpl Default for SchemaTypeEnum
impl Default for SchemaTypeEnum
sourcefn default() -> SchemaTypeEnum
fn default() -> SchemaTypeEnum
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SchemaTypeEnum
impl<'de> Deserialize<'de> for SchemaTypeEnum
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, V> FromIterator<(N, V)> for SchemaTypeEnum where
N: ToString,
V: Into<SchemaTypeEnumVariant>,
impl<N, V> FromIterator<(N, V)> for SchemaTypeEnum where
N: ToString,
V: Into<SchemaTypeEnumVariant>,
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = (N, V)>,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = (N, V)>,
Creates a value from an iterator. Read more
sourceimpl PartialEq<SchemaTypeEnum> for SchemaTypeEnum
impl PartialEq<SchemaTypeEnum> for SchemaTypeEnum
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SchemaTypeEnum) -> bool
fn ne(&self, other: &SchemaTypeEnum) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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