pub enum TypeSignature {
Show 23 variants
I8,
I16,
I32,
I64,
U8,
U16,
U32,
U64,
F32,
F64,
Bool,
String,
Datetime,
Bytes,
Custom(String),
Ref {
reference: String,
},
Stream {
ty: Box<TypeSignature>,
},
List {
ty: Box<TypeSignature>,
},
Optional {
ty: Box<TypeSignature>,
},
Map {
key: Box<TypeSignature>,
value: Box<TypeSignature>,
},
Link {
schemas: Vec<String>,
},
Object,
AnonymousStruct(Vec<Field>),
}
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.
Custom(String)
A custom type name.
Ref
A reference to another type.
Stream
Fields
§
ty: Box<TypeSignature>
The inner type
A stream type
List
Fields
§
ty: Box<TypeSignature>
The type of the list’s elements
A list type
Optional
Fields
§
ty: Box<TypeSignature>
The actual type that is optional.
A type representing an optional value.
Map
Fields
§
key: Box<TypeSignature>
The type of the map’s keys.
§
value: Box<TypeSignature>
The type of the map’s values.
A HashMap-like type.
Link
A type representing a link to another collection.
Object
A JSON-like key/value map.
AnonymousStruct(Vec<Field>)
An inline, anonymous struct interface.
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 Display for TypeSignature
impl Display for TypeSignature
source§impl FromStr for TypeSignature
impl FromStr for TypeSignature
source§impl PartialEq<TypeSignature> for TypeSignature
impl PartialEq<TypeSignature> for TypeSignature
source§fn eq(&self, other: &TypeSignature) -> bool
fn eq(&self, other: &TypeSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TypeSignature
impl Serialize for TypeSignature
impl Eq for TypeSignature
impl StructuralEq for TypeSignature
impl StructuralPartialEq for TypeSignature
Auto Trait Implementations§
impl RefUnwindSafe for TypeSignature
impl Send for TypeSignature
impl Sync for TypeSignature
impl Unpin for TypeSignature
impl UnwindSafe for TypeSignature
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.