Trait SealableVersionedData

Source
pub trait SealableVersionedData: Serialize + DeserializeOwned {
    const NAMESPACE: DataEnvelopeNamespace;
}
Expand description

Marker trait for data that can be sealed in a DataEnvelope.

Do not manually implement this! Use the generate_versioned_sealable! macro instead.

Required Associated Constants§

Source

const NAMESPACE: DataEnvelopeNamespace

The namespace to use when sealing this type of data. This must be unique per struct.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§