Skip to main content

DomainRecordType

Trait DomainRecordType 

Source
pub trait DomainRecordType {
    type Payload;
    type Class: DomainKindClass;

    const NAMESPACE: &'static str;
    const NAME: &'static str;
}
Expand description

Compile-time identity for one namespaced application-defined record kind.

The associated payload stays outside the kernel’s type graph. Domain packages use this trait to bind stable identities and payload codecs while Canwu persists the existing schema-validated DomainRecordRef shape.

Required Associated Constants§

Source

const NAMESPACE: &'static str

Source

const NAME: &'static str

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§