[][src]Trait candid::types::CandidType

pub trait CandidType {
    fn id() -> TypeId;
fn _ty() -> Type;
fn idl_serialize<S>(&self, serializer: S) -> Result<(), S::Error>
    where
        S: Serializer
; fn ty() -> Type { ... } }

Required methods

fn id() -> TypeId

fn _ty() -> Type

fn idl_serialize<S>(&self, serializer: S) -> Result<(), S::Error> where
    S: Serializer

Loading content...

Provided methods

fn ty() -> Type

Loading content...

Implementations on Foreign Types

impl<'_> CandidType for &'_ str[src]

impl CandidType for ()[src]

impl CandidType for bool[src]

impl CandidType for i8[src]

impl CandidType for i16[src]

impl CandidType for i32[src]

impl CandidType for i64[src]

impl CandidType for u8[src]

impl CandidType for u16[src]

impl CandidType for u32[src]

impl CandidType for u64[src]

impl CandidType for f32[src]

impl CandidType for f64[src]

impl CandidType for isize[src]

impl CandidType for usize[src]

impl CandidType for String[src]

impl<T: Sized> CandidType for Option<T> where
    T: CandidType
[src]

impl<T> CandidType for Vec<T> where
    T: CandidType
[src]

impl<T> CandidType for [T] where
    T: CandidType
[src]

impl<T> CandidType for [T; 1] where
    T: CandidType
[src]

impl<T> CandidType for [T; 2] where
    T: CandidType
[src]

impl<T> CandidType for [T; 3] where
    T: CandidType
[src]

impl<T> CandidType for [T; 4] where
    T: CandidType
[src]

impl<T> CandidType for [T; 5] where
    T: CandidType
[src]

impl<T> CandidType for [T; 6] where
    T: CandidType
[src]

impl<T> CandidType for [T; 7] where
    T: CandidType
[src]

impl<T> CandidType for [T; 8] where
    T: CandidType
[src]

impl<T> CandidType for [T; 9] where
    T: CandidType
[src]

impl<T> CandidType for [T; 10] where
    T: CandidType
[src]

impl<T> CandidType for [T; 11] where
    T: CandidType
[src]

impl<T> CandidType for [T; 12] where
    T: CandidType
[src]

impl<T> CandidType for [T; 13] where
    T: CandidType
[src]

impl<T> CandidType for [T; 14] where
    T: CandidType
[src]

impl<T> CandidType for [T; 15] where
    T: CandidType
[src]

impl<T> CandidType for [T; 16] where
    T: CandidType
[src]

impl<T> CandidType for [T; 17] where
    T: CandidType
[src]

impl<T> CandidType for [T; 18] where
    T: CandidType
[src]

impl<T> CandidType for [T; 19] where
    T: CandidType
[src]

impl<T> CandidType for [T; 20] where
    T: CandidType
[src]

impl<T> CandidType for [T; 21] where
    T: CandidType
[src]

impl<T> CandidType for [T; 22] where
    T: CandidType
[src]

impl<T> CandidType for [T; 23] where
    T: CandidType
[src]

impl<T> CandidType for [T; 24] where
    T: CandidType
[src]

impl<T> CandidType for [T; 25] where
    T: CandidType
[src]

impl<T> CandidType for [T; 26] where
    T: CandidType
[src]

impl<T> CandidType for [T; 27] where
    T: CandidType
[src]

impl<T> CandidType for [T; 28] where
    T: CandidType
[src]

impl<T> CandidType for [T; 29] where
    T: CandidType
[src]

impl<T> CandidType for [T; 30] where
    T: CandidType
[src]

impl<T> CandidType for [T; 31] where
    T: CandidType
[src]

impl<T> CandidType for [T; 32] where
    T: CandidType
[src]

impl<T> CandidType for [T; 0] where
    T: CandidType
[src]

impl<T, E> CandidType for Result<T, E> where
    T: CandidType,
    E: CandidType
[src]

impl<T: ?Sized> CandidType for Box<T> where
    T: CandidType
[src]

impl<'a, T: ?Sized> CandidType for &'a T where
    T: 'a + CandidType
[src]

impl<T0> CandidType for (T0,) where
    T0: CandidType
[src]

impl<T0, T1> CandidType for (T0, T1) where
    T0: CandidType,
    T1: CandidType
[src]

impl<T0, T1, T2> CandidType for (T0, T1, T2) where
    T0: CandidType,
    T1: CandidType,
    T2: CandidType
[src]

impl<T0, T1, T2, T3> CandidType for (T0, T1, T2, T3) where
    T0: CandidType,
    T1: CandidType,
    T2: CandidType,
    T3: CandidType
[src]

impl<T0, T1, T2, T3, T4> CandidType for (T0, T1, T2, T3, T4) where
    T0: CandidType,
    T1: CandidType,
    T2: CandidType,
    T3: CandidType,
    T4: CandidType
[src]

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
[src]

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
[src]

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
[src]

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
[src]

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
[src]

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
[src]

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
[src]

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
[src]

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
[src]

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
[src]

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
[src]

Loading content...

Implementors

impl CandidType for IDLValue[src]

impl CandidType for Empty[src]

impl CandidType for Int[src]

impl CandidType for Nat[src]

impl CandidType for Reserved[src]

impl CandidType for Principal[src]

Loading content...