Skip to main content

StructValue

Trait StructValue 

Source
pub trait StructValue: Sealed {
    type Schema: Schema;

    const STRUCT_ID_JSON: &'static str;
}
Expand description

A sealed generated struct value associated with its schema marker S.

Required Associated Constants§

Source

const STRUCT_ID_JSON: &'static str

Canonical JSON identity for the projected schema struct.

Required Associated Types§

Source

type Schema: Schema

The generated schema that owns this struct value.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§