Enum vino_types::TypeSignature
source · [−]pub enum TypeSignature {
Show 22 variants
I8,
I16,
I32,
I64,
U8,
U16,
U32,
U64,
F32,
F64,
Bool,
String,
Datetime,
Bytes,
Raw,
Value,
ComponentInput,
Ref {
reference: String,
},
List {
element: Box<TypeSignature>,
},
Optional {
option: Box<TypeSignature>,
},
Map {
key: Box<TypeSignature>,
value: Box<TypeSignature>,
},
Link {
provider: Option<String>,
},
}
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.
Raw
Raw value to be processed later.
Value
Any valid value.
ComponentInput
A full set of component inputs.
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 ProviderLink
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 MapWrapper<TypeSignature> for TypeMap
impl MapWrapper<TypeSignature> for TypeMap
sourcefn get_inner_owned(self) -> HashMap<String, TypeSignature>
fn get_inner_owned(self) -> HashMap<String, TypeSignature>
Get the inner HashMap.
sourcefn get_inner(&self) -> &HashMap<String, TypeSignature>
fn get_inner(&self) -> &HashMap<String, TypeSignature>
Get a reference to the inner HashMap.
sourcefn get_inner_mut(&mut self) -> &mut HashMap<String, TypeSignature>
fn get_inner_mut(&mut self) -> &mut HashMap<String, TypeSignature>
Get a mutable reference to the inner HashMap.
sourcefn into_inner(self) -> HashMap<String, T>
fn into_inner(self) -> HashMap<String, T>
Return the inner HashMap.
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more