Struct jtd_derive::schema::Names
source · pub struct Names {
pub short: &'static str,
pub long: &'static str,
pub type_params: Vec<Names>,
pub const_params: Vec<String>,
}Expand description
How to refer to a given schema. Used mostly for referring to a schema definition using the “ref” form.
The Generator decides how to use this information to
generate an actual identifier.
Fields§
§short: &'static strThe short name. Most of the time this is just the ident of the Rust type.
long: &'static strThe long name. Most of the time this is the full path of the Rust type, starting with the crate name.
type_params: Vec<Names>Names of any type arguments applied to the generic Rust type.
const_params: Vec<String>The values of constant arguments represented as strings.