pub trait KeyValueJsonSchema: KeyValueLabels {
const JSON_SCHEMA_KV_NAME: Option<&'static str> = None;
const JSON_SCHEMA_KV_DESCRIPTION: Option<&'static str> = None;
const JSON_SCHEMA_KEY_DESCRIPTION: Option<&'static str> = None;
const JSON_SCHEMA_VALUE_DESCRIPTION: Option<&'static str> = None;
}
Available on crate feature
json-schema
only.Expand description
A specifier of the JSON schema data to be used for the KeyValue struct.
Provided Associated Constants§
Sourceconst JSON_SCHEMA_KV_NAME: Option<&'static str> = None
const JSON_SCHEMA_KV_NAME: Option<&'static str> = None
The value to use for Schemars::schema_name()
of the KeyValue struct.
If None
, then a default of "KeyValue_for_{K::schema_name()}_and_{V::schema_name()}"
is
applied.
Sourceconst JSON_SCHEMA_KV_DESCRIPTION: Option<&'static str> = None
const JSON_SCHEMA_KV_DESCRIPTION: Option<&'static str> = None
The description applied to the KeyValue struct.
Sourceconst JSON_SCHEMA_KEY_DESCRIPTION: Option<&'static str> = None
const JSON_SCHEMA_KEY_DESCRIPTION: Option<&'static str> = None
The description applied to the key of the KeyValue struct.
Sourceconst JSON_SCHEMA_VALUE_DESCRIPTION: Option<&'static str> = None
const JSON_SCHEMA_VALUE_DESCRIPTION: Option<&'static str> = None
The description applied to the value of the KeyValue struct.
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.