pub struct FormatAnnotationVocabulary {
pub format: Option<String>,
}Expand description
Format-annotation vocabulary.
Fields§
§format: Option<String>The format keyword — semantic format annotation.
Structural validation alone may be insufficient to allow an
application to correctly utilize certain values. The "format"
annotation keyword is defined to allow schema authors to convey
semantic information for a fixed subset of values which are
accurately described by authoritative resources, be they RFCs or
other external specifications.
The value of this keyword is called a format attribute. It MUST be a string.
Trait Implementations§
Source§impl Clone for FormatAnnotationVocabulary
impl Clone for FormatAnnotationVocabulary
Source§fn clone(&self) -> FormatAnnotationVocabulary
fn clone(&self) -> FormatAnnotationVocabulary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormatAnnotationVocabulary
impl Debug for FormatAnnotationVocabulary
Source§impl Default for FormatAnnotationVocabulary
impl Default for FormatAnnotationVocabulary
Source§fn default() -> FormatAnnotationVocabulary
fn default() -> FormatAnnotationVocabulary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FormatAnnotationVocabulary
impl<'de> Deserialize<'de> for FormatAnnotationVocabulary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for FormatAnnotationVocabulary
impl JsonSchema for FormatAnnotationVocabulary
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 Eq for FormatAnnotationVocabulary
impl StructuralPartialEq for FormatAnnotationVocabulary
Auto Trait Implementations§
impl Freeze for FormatAnnotationVocabulary
impl RefUnwindSafe for FormatAnnotationVocabulary
impl Send for FormatAnnotationVocabulary
impl Sync for FormatAnnotationVocabulary
impl Unpin for FormatAnnotationVocabulary
impl UnsafeUnpin for FormatAnnotationVocabulary
impl UnwindSafe for FormatAnnotationVocabulary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.