pub trait WireSchema {
const REQUIRES_ARITY: bool = false;
// Required method
fn wire_schema() -> Cow<'static, [u8]>;
}Expand description
Stable, versioned identity for persisted payloads, independent of Rust names.
External implementations must use a globally unique schema and change it when
the wire interpretation changes. Never reuse a built-in safemesh/ identity.
Provided Associated Constants§
const REQUIRES_ARITY: bool = false
Required Methods§
Sourcefn wire_schema() -> Cow<'static, [u8]>
fn wire_schema() -> Cow<'static, [u8]>
Borrow fixed identities; return owned bytes for composed schemas.
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.