Enum wasmflow_interface::TypeSignature
source · [−]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
Fields
reference: String
The reference string
A reference to another type.
List
Fields
element: Box<TypeSignature>
The type of the list’s elements
A list type
Optional
Fields
option: 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.
Struct
A JSON-like key/value map.
Trait Implementations
sourceimpl Clone for TypeSignature
impl Clone for TypeSignature
sourcefn clone(&self) -> TypeSignature
fn clone(&self) -> TypeSignature
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 TypeSignature
impl Debug for TypeSignature
sourceimpl<'de> Deserialize<'de> for TypeSignature
impl<'de> Deserialize<'de> for TypeSignature
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 FromStr for TypeSignature
impl FromStr for TypeSignature
sourceimpl PartialEq<TypeSignature> for TypeSignature
impl PartialEq<TypeSignature> for TypeSignature
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &TypeSignature) -> bool
fn ne(&self, other: &TypeSignature) -> bool
This method tests for !=
.
sourceimpl Serialize for TypeSignature
impl Serialize 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
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