Trait candid::types::CandidType
source · pub trait CandidType {
// Required methods
fn _ty() -> Type;
fn idl_serialize<S>(&self, serializer: S) -> Result<(), S::Error>
where S: Serializer;
// Provided methods
fn ty() -> Type { ... }
fn id() -> TypeId { ... }
}
Required Methods§
fn _ty() -> Type
fn idl_serialize<S>(&self, serializer: S) -> Result<(), S::Error>where
S: Serializer,
Provided Methods§
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl CandidType for bool
impl CandidType for bool
source§impl CandidType for f32
impl CandidType for f32
source§impl CandidType for f64
impl CandidType for f64
source§impl CandidType for i8
impl CandidType for i8
source§impl CandidType for i16
impl CandidType for i16
source§impl CandidType for i32
impl CandidType for i32
source§impl CandidType for i64
impl CandidType for i64
source§impl CandidType for i128
impl CandidType for i128
source§impl CandidType for isize
impl CandidType for isize
source§impl CandidType for str
impl CandidType for str
source§impl CandidType for u8
impl CandidType for u8
source§impl CandidType for u16
impl CandidType for u16
source§impl CandidType for u32
impl CandidType for u32
source§impl CandidType for u64
impl CandidType for u64
source§impl CandidType for u128
impl CandidType for u128
source§impl CandidType for ()
impl CandidType for ()
source§impl CandidType for usize
impl CandidType for usize
source§impl CandidType for String
impl CandidType for String
source§impl CandidType for Duration
impl CandidType for Duration
source§impl CandidType for Path
impl CandidType for Path
source§impl CandidType for PathBuf
impl CandidType for PathBuf
source§impl CandidType for SystemTime
impl CandidType for SystemTime
source§impl CandidType for ByteBuf
Available on crate feature serde_bytes
only.
impl CandidType for ByteBuf
Available on crate feature
serde_bytes
only.source§impl CandidType for Bytes
Available on crate feature serde_bytes
only.
impl CandidType for Bytes
Available on crate feature
serde_bytes
only.source§impl<'a, T> CandidType for Cow<'a, T>
impl<'a, T> CandidType for Cow<'a, T>
source§impl<'a, T> CandidType for &'a Twhere
T: ?Sized + CandidType,
impl<'a, T> CandidType for &'a Twhere
T: ?Sized + CandidType,
source§impl<'a, T> CandidType for &'a mut Twhere
T: ?Sized + CandidType,
impl<'a, T> CandidType for &'a mut Twhere
T: ?Sized + CandidType,
source§impl<K> CandidType for BinaryHeap<K>where
K: CandidType + Ord,
impl<K> CandidType for BinaryHeap<K>where
K: CandidType + Ord,
source§impl<K> CandidType for BTreeSet<K>where
K: CandidType + Ord,
impl<K> CandidType for BTreeSet<K>where
K: CandidType + Ord,
source§impl<K> CandidType for LinkedList<K>where
K: CandidType,
impl<K> CandidType for LinkedList<K>where
K: CandidType,
source§impl<K> CandidType for VecDeque<K>where
K: CandidType,
impl<K> CandidType for VecDeque<K>where
K: CandidType,
source§impl<K> CandidType for Vec<K>where
K: CandidType,
impl<K> CandidType for Vec<K>where
K: CandidType,
source§impl<K, H> CandidType for HashSet<K, H>
impl<K, H> CandidType for HashSet<K, H>
source§impl<K, V> CandidType for BTreeMap<K, V>
impl<K, V> CandidType for BTreeMap<K, V>
source§impl<K, V, H> CandidType for HashMap<K, V, H>
impl<K, V, H> CandidType for HashMap<K, V, H>
source§impl<T0> CandidType for (T0,)where
T0: CandidType,
impl<T0> CandidType for (T0,)where
T0: CandidType,
source§impl<T0, T1> CandidType for (T0, T1)where
T0: CandidType,
T1: CandidType,
impl<T0, T1> CandidType for (T0, T1)where
T0: CandidType,
T1: CandidType,
source§impl<T0, T1, T2> CandidType for (T0, T1, T2)
impl<T0, T1, T2> CandidType for (T0, T1, T2)
source§impl<T0, T1, T2, T3> CandidType for (T0, T1, T2, T3)
impl<T0, T1, T2, T3> CandidType for (T0, T1, T2, T3)
source§impl<T0, T1, T2, T3, T4> CandidType for (T0, T1, T2, T3, T4)
impl<T0, T1, T2, T3, T4> CandidType for (T0, T1, T2, T3, T4)
source§impl<T0, T1, T2, T3, T4, T5> CandidType for (T0, T1, T2, T3, T4, T5)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
impl<T0, T1, T2, T3, T4, T5> CandidType for (T0, T1, T2, T3, T4, T5)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
source§impl<T0, T1, T2, T3, T4, T5, T6> CandidType for (T0, T1, T2, T3, T4, T5, T6)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
impl<T0, T1, T2, T3, T4, T5, T6> CandidType for (T0, T1, T2, T3, T4, T5, T6)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
impl<T0, T1, T2, T3, T4, T5, T6, T7> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
T9: CandidType,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
T9: CandidType,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
T9: CandidType,
T10: CandidType,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
T9: CandidType,
T10: CandidType,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
T9: CandidType,
T10: CandidType,
T11: CandidType,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
T9: CandidType,
T10: CandidType,
T11: CandidType,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
T9: CandidType,
T10: CandidType,
T11: CandidType,
T12: CandidType,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
T9: CandidType,
T10: CandidType,
T11: CandidType,
T12: CandidType,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
T9: CandidType,
T10: CandidType,
T11: CandidType,
T12: CandidType,
T13: CandidType,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
T9: CandidType,
T10: CandidType,
T11: CandidType,
T12: CandidType,
T13: CandidType,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
T9: CandidType,
T10: CandidType,
T11: CandidType,
T12: CandidType,
T13: CandidType,
T14: CandidType,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
T9: CandidType,
T10: CandidType,
T11: CandidType,
T12: CandidType,
T13: CandidType,
T14: CandidType,
source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
T9: CandidType,
T10: CandidType,
T11: CandidType,
T12: CandidType,
T13: CandidType,
T14: CandidType,
T15: CandidType,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> CandidType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T0: CandidType,
T1: CandidType,
T2: CandidType,
T3: CandidType,
T4: CandidType,
T5: CandidType,
T6: CandidType,
T7: CandidType,
T8: CandidType,
T9: CandidType,
T10: CandidType,
T11: CandidType,
T12: CandidType,
T13: CandidType,
T14: CandidType,
T15: CandidType,
source§impl<T> CandidType for Option<T>where
T: CandidType + Sized,
impl<T> CandidType for Option<T>where
T: CandidType + Sized,
source§impl<T> CandidType for [T]where
T: CandidType,
impl<T> CandidType for [T]where
T: CandidType,
source§impl<T> CandidType for Box<T>where
T: ?Sized + CandidType,
impl<T> CandidType for Box<T>where
T: ?Sized + CandidType,
source§impl<T> CandidType for Rc<T>where
T: CandidType,
impl<T> CandidType for Rc<T>where
T: CandidType,
source§impl<T> CandidType for Arc<T>where
T: CandidType,
impl<T> CandidType for Arc<T>where
T: CandidType,
source§impl<T> CandidType for Cell<T>where
T: CandidType + Copy,
impl<T> CandidType for Cell<T>where
T: CandidType + Copy,
source§impl<T> CandidType for RefCell<T>where
T: CandidType,
impl<T> CandidType for RefCell<T>where
T: CandidType,
source§impl<T> CandidType for Reverse<T>where
T: CandidType,
impl<T> CandidType for Reverse<T>where
T: CandidType,
source§impl<T, E> CandidType for Result<T, E>where
T: CandidType,
E: CandidType,
impl<T, E> CandidType for Result<T, E>where
T: CandidType,
E: CandidType,
source§impl<T: CandidType, const N: usize> CandidType for [T; N]
impl<T: CandidType, const N: usize> CandidType for [T; N]
Implementors§
impl CandidType for Empty
impl CandidType for IDLValue
Available on crate feature
value
only.