Skip to main content

Wire

Trait Wire 

Source
pub trait Wire: Serialize + DeserializeOwned {
    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.

Required Associated Constants§

Source

const SHAPE: Shape

Static resource authority for this value.

Provided Associated Constants§

Source

const SCHEMA: Schema = crate::schema::Schema::Opaque

Static projection metadata; custom implementations must opt in honestly.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Wire for ()

Source§

const SHAPE: Shape

Source§

const SCHEMA: Schema = Schema::Unit

Source§

impl Wire for bool

Source§

const SHAPE: Shape

Source§

const SCHEMA: Schema = Schema::Bool

Source§

impl Wire for i8

Source§

impl Wire for i16

Source§

impl Wire for i32

Source§

impl Wire for i64

Source§

impl Wire for i128

Source§

impl Wire for u8

Source§

impl Wire for u16

Source§

impl Wire for u32

Source§

impl Wire for u64

Source§

impl Wire for u128

Source§

impl<T: Wire, E: Wire> Wire for Result<T, E>

Source§

impl<T: Wire, const N: usize> Wire for [T; N]

Source§

impl<T: Wire> Wire for Option<T>

Implementors§