Skip to main content

Value

Trait Value 

Source
pub trait Value: Sized {
    const NAME: &'static str;

    // Required method
    fn definition() -> &'static TypeSchema;
}
Expand description

Codec boundary generated by named-type macros; handwritten implementations are unsupported.

Required Associated Constants§

Source

const NAME: &'static str

Logical name; independent of source path and declaration order.

Required Methods§

Source

fn definition() -> &'static TypeSchema

Compiled descriptor, including recursive links.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl Value for NonAnonymousPrincipal

Source§

const NAME: &'static str = "NonAnonymousPrincipal"