pub struct Reference {
pub name: Option<NameToken>,
pub refuri: Option<Url>,
pub refid: Option<ID>,
pub refname: Vec<NameToken>,
}Fields§
§name: Option<NameToken>§refuri: Option<Url>External reference to a URI/URL
refid: Option<ID>References to ids attributes in other elements
refname: Vec<NameToken>Internal reference to the names attribute of another element
Trait Implementations§
Source§impl ExtraAttributes<Reference> for Reference
impl ExtraAttributes<Reference> for Reference
Source§impl JsonSchema for Reference
impl JsonSchema for Reference
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnwindSafe for Reference
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