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.