pub enum SchemaTypeEnumVariant {
Empty,
Tuple(SchemaTypeTuple),
Struct(SchemaTypeStruct),
}
Variants§
Implementations§
source§impl SchemaTypeEnumVariant
impl SchemaTypeEnumVariant
pub fn new_tuple(content: impl Into<SchemaTypeTuple>) -> Self
pub fn new_struct(content: impl Into<SchemaTypeStruct>) -> Self
Trait Implementations§
source§impl Clone for SchemaTypeEnumVariant
impl Clone for SchemaTypeEnumVariant
source§fn clone(&self) -> SchemaTypeEnumVariant
fn clone(&self) -> SchemaTypeEnumVariant
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 SchemaTypeEnumVariant
impl Debug for SchemaTypeEnumVariant
source§impl Default for SchemaTypeEnumVariant
impl Default for SchemaTypeEnumVariant
source§fn default() -> SchemaTypeEnumVariant
fn default() -> SchemaTypeEnumVariant
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SchemaTypeEnumVariant
impl<'de> Deserialize<'de> for SchemaTypeEnumVariant
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 PartialEq<SchemaTypeEnumVariant> for SchemaTypeEnumVariant
impl PartialEq<SchemaTypeEnumVariant> for SchemaTypeEnumVariant
source§fn eq(&self, other: &SchemaTypeEnumVariant) -> bool
fn eq(&self, other: &SchemaTypeEnumVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SchemaTypeEnumVariant
impl Serialize for SchemaTypeEnumVariant
impl StructuralPartialEq for SchemaTypeEnumVariant
Auto Trait Implementations§
impl RefUnwindSafe for SchemaTypeEnumVariant
impl Send for SchemaTypeEnumVariant
impl Sync for SchemaTypeEnumVariant
impl Unpin for SchemaTypeEnumVariant
impl UnwindSafe for SchemaTypeEnumVariant
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