pub enum OwnedDataModelType {
Show 29 variants
Bool,
I8,
U8,
I16,
I32,
I64,
I128,
U16,
U32,
U64,
U128,
Usize,
Isize,
F32,
F64,
Char,
String,
ByteArray,
Option(Box<OwnedNamedType>),
Unit,
UnitStruct,
NewtypeStruct(Box<OwnedNamedType>),
Seq(Box<OwnedNamedType>),
Tuple(Vec<OwnedNamedType>),
TupleStruct(Vec<OwnedNamedType>),
Map {
key: Box<OwnedNamedType>,
val: Box<OwnedNamedType>,
},
Struct(Vec<OwnedNamedValue>),
Enum(Vec<OwnedNamedVariant>),
Schema,
}Expand description
The owned version of DataModelType
Variants§
Bool
The bool Serde Data Model Type
I8
The i8 Serde Data Model Type
U8
The u8 Serde Data Model Type
I16
A variably encoded i16
I32
A variably encoded i32
I64
A variably encoded i64
I128
A variably encoded i128
U16
A variably encoded u16
U32
A variably encoded u32
U64
A variably encoded u64
U128
A variably encoded u128
Usize
A variably encoded usize
Isize
A variably encoded isize
F32
The f32 Serde Data Model Type
F64
The `f64 Serde Data Model Type
Char
The char Serde Data Model Type
String
The String Serde Data Model Type
ByteArray
The &[u8] Serde Data Model Type
Option(Box<OwnedNamedType>)
The Option<T> Serde Data Model Type
Unit
The () Serde Data Model Type
UnitStruct
The “unit struct” Serde Data Model Type
NewtypeStruct(Box<OwnedNamedType>)
The “newtype struct” Serde Data Model Type
Seq(Box<OwnedNamedType>)
The “Sequence” Serde Data Model Type
Tuple(Vec<OwnedNamedType>)
The “Tuple” Serde Data Model Type
TupleStruct(Vec<OwnedNamedType>)
The “Tuple Struct” Serde Data Model Type
Map
The “Map” Serde Data Model Type
Struct(Vec<OwnedNamedValue>)
The “Struct” Serde Data Model Type
Enum(Vec<OwnedNamedVariant>)
The “Enum” Serde Data Model Type (which contains any of the “Variant” types)
Schema
A NamedType/OwnedNamedType
Trait Implementations§
Source§impl Clone for OwnedDataModelType
impl Clone for OwnedDataModelType
Source§fn clone(&self) -> OwnedDataModelType
fn clone(&self) -> OwnedDataModelType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OwnedDataModelType
impl Debug for OwnedDataModelType
Source§impl<'de> Deserialize<'de> for OwnedDataModelType
impl<'de> Deserialize<'de> for OwnedDataModelType
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>,
Source§impl From<&DataModelType> for OwnedDataModelType
impl From<&DataModelType> for OwnedDataModelType
Source§fn from(other: &DataModelType) -> Self
fn from(other: &DataModelType) -> Self
Source§impl Hash for OwnedDataModelType
impl Hash for OwnedDataModelType
Source§impl PartialEq for OwnedDataModelType
impl PartialEq for OwnedDataModelType
Source§impl Serialize for OwnedDataModelType
impl Serialize for OwnedDataModelType
impl Eq for OwnedDataModelType
impl StructuralPartialEq for OwnedDataModelType
Auto Trait Implementations§
impl Freeze for OwnedDataModelType
impl RefUnwindSafe for OwnedDataModelType
impl Send for OwnedDataModelType
impl Sync for OwnedDataModelType
impl Unpin for OwnedDataModelType
impl UnwindSafe for OwnedDataModelType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.