pub struct Annotations { /* private fields */ }Expand description
Collection of annotations that can be applied to schema objects
Implementations§
Source§impl Annotations
 
impl Annotations
Sourcepub fn with_location(self, location: Location) -> Self
 
pub fn with_location(self, location: Location) -> Self
Add a location annotation
Sourcepub fn with_required(self, required: bool) -> Self
 
pub fn with_required(self, required: bool) -> Self
Add a required annotation
Sourcepub fn with_content_type(self, content_type: String) -> Self
 
pub fn with_content_type(self, content_type: String) -> Self
Add a content type annotation
Sourcepub fn with_original_name(self, original_name: String) -> Self
 
pub fn with_original_name(self, original_name: String) -> Self
Add an original name annotation
Sourcepub fn with_explode(self, explode: bool) -> Self
 
pub fn with_explode(self, explode: bool) -> Self
Add an explode annotation
Trait Implementations§
Source§impl Clone for Annotations
 
impl Clone for Annotations
Source§fn clone(&self) -> Annotations
 
fn clone(&self) -> Annotations
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 Annotations
 
impl Debug for Annotations
Source§impl Default for Annotations
 
impl Default for Annotations
Source§fn default() -> Annotations
 
fn default() -> Annotations
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Annotations
impl RefUnwindSafe for Annotations
impl Send for Annotations
impl Sync for Annotations
impl Unpin for Annotations
impl UnwindSafe for Annotations
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