Trait DynamicType

Source
pub trait DynamicType {
    // Required method
    fn signature(&self) -> Signature;
}
Expand description

Types with dynamic signatures.

Prefer implementing Type if possible, but if the actual signature of your type cannot be determined until runtime, you can implement this type to support serialization. You should also implement DynamicDeserialize for deserialization.

Required Methods§

Source

fn signature(&self) -> Signature

The type signature for self.

See Type::SIGNATURE for details.

Implementors§

Source§

impl DynamicType for Array<'_>

Source§

impl DynamicType for ArraySeed

Source§

impl DynamicType for DynamicTuple<()>

Source§

impl DynamicType for OwnedStructure

Source§

impl DynamicType for OwnedStructureSeed

Source§

impl DynamicType for Structure<'_>

Source§

impl DynamicType for StructureSeed<'_>

Source§

impl<T0> DynamicType for DynamicTuple<(T0,)>
where T0: DynamicType,

Source§

impl<T0, T1> DynamicType for DynamicTuple<(T0, T1)>
where T0: DynamicType, T1: DynamicType,

Source§

impl<T0, T1, T2> DynamicType for DynamicTuple<(T0, T1, T2)>
where T0: DynamicType, T1: DynamicType, T2: DynamicType,

Source§

impl<T0, T1, T2, T3> DynamicType for DynamicTuple<(T0, T1, T2, T3)>

Source§

impl<T0, T1, T2, T3, T4> DynamicType for DynamicTuple<(T0, T1, T2, T3, T4)>

Source§

impl<T0, T1, T2, T3, T4, T5> DynamicType for DynamicTuple<(T0, T1, T2, T3, T4, T5)>

Source§

impl<T0, T1, T2, T3, T4, T5, T6> DynamicType for DynamicTuple<(T0, T1, T2, T3, T4, T5, T6)>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7> DynamicType for DynamicTuple<(T0, T1, T2, T3, T4, T5, T6, T7)>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> DynamicType for DynamicTuple<(T0, T1, T2, T3, T4, T5, T6, T7, T8)>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> DynamicType for DynamicTuple<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> DynamicType for DynamicTuple<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> DynamicType for DynamicTuple<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> DynamicType for DynamicTuple<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> DynamicType for DynamicTuple<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> DynamicType for DynamicTuple<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> DynamicType for DynamicTuple<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)>

Source§

impl<T> DynamicType for T
where T: Type + ?Sized,

Source§

impl<T, S> DynamicType for TupleSeed<'_, T, S>