pub enum TypeSignature {
Show 22 variants
I8,
I16,
I32,
I64,
U8,
U16,
U32,
U64,
F32,
F64,
Bool,
String,
Datetime,
Bytes,
Value,
Internal(InternalType),
Ref {
reference: String,
},
List {
element: Box<TypeSignature>,
},
Optional {
option: Box<TypeSignature>,
},
Map {
key: Box<TypeSignature>,
value: Box<TypeSignature>,
},
Link {
schemas: Vec<String>,
},
Struct,
}
Expand description
Enum of valid types.
Variants§
I8
I8 type.
I16
I16 type.
I32
I32 type.
I64
I64 type.
U8
u8 type.
U16
u16 type.
U32
u32 type.
U64
u64 type.
F32
f32 type.
F64
f64 type.
Bool
Boolean type.
String
String type.
Datetime
Date type.
Bytes
Raw bytes.
Value
Any valid value.
Internal(InternalType)
An internal type.
Ref
A reference to another type.
List
A list type
Fields
§
element: Box<TypeSignature>
The type of the list’s elements
Optional
A type representing an optional value.
Fields
§
option: Box<TypeSignature>
The actual type that is optional.
Map
A HashMap-like type.
Fields
§
key: Box<TypeSignature>
The type of the map’s keys.
§
value: Box<TypeSignature>
The type of the map’s values.
Link
A type representing a link to another collection.
Struct
A JSON-like key/value map.
Trait Implementations§
Source§impl Clone for TypeSignature
impl Clone for TypeSignature
Source§fn clone(&self) -> TypeSignature
fn clone(&self) -> TypeSignature
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 TypeSignature
impl Debug for TypeSignature
Source§impl<'de> Deserialize<'de> for TypeSignature
impl<'de> Deserialize<'de> for TypeSignature
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 FromStr for TypeSignature
impl FromStr for TypeSignature
Source§impl PartialEq for TypeSignature
impl PartialEq for TypeSignature
Source§impl Serialize for TypeSignature
impl Serialize for TypeSignature
impl StructuralPartialEq for TypeSignature
Auto Trait Implementations§
impl Freeze for TypeSignature
impl RefUnwindSafe for TypeSignature
impl Send for TypeSignature
impl Sync for TypeSignature
impl Unpin for TypeSignature
impl UnwindSafe for TypeSignature
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