pub trait Wire: Serialize {
const SHAPE: Shape;
const SCHEMA: Schema = crate::schema::Schema::Opaque;
}Expand description
Finite values. Prefer the derive with explicit field identities.
Manual implementations must provide honest bounds, reject before excessive
allocation/work, and serialize deterministically. Unbounded Serde types have
no implementation. Recursive types are unsupported.
Decoding additionally requires Deserialize for the input lifetime; a Wire
value may borrow input or support encoding only.
Required Associated Constants§
Provided Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".