pub struct Names {
pub short: &'static str,
pub long: &'static str,
pub nullable: bool,
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 str
The short name. Most of the time this is just the ident of the Rust type.
long: &'static str
The long name. Most of the time this is the full path of the Rust type, starting with the crate name.
nullable: bool
Nullability.
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.
Trait Implementations§
impl Eq for Names
impl StructuralPartialEq for Names
Auto Trait Implementations§
impl Freeze for Names
impl RefUnwindSafe for Names
impl Send for Names
impl Sync for Names
impl Unpin for Names
impl UnwindSafe for Names
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more