Trait zvariant::DynamicType

source ·
pub trait DynamicType {
    // Required method
    fn dynamic_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 dynamic_signature(&self) -> Signature<'_>

Get the signature for the implementing type.

See Type::signature for details.

Implementors§

source§

impl<'a> DynamicType for Array<'a>

source§

impl<'a> DynamicType for ArraySeed<'a>

source§

impl<'a> DynamicType for Structure<'a>

source§

impl<'a> DynamicType for StructureSeed<'a>

source§

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