pub struct SchemaMetadata { /* private fields */ }Implementations§
Source§impl SchemaMetadata
impl SchemaMetadata
pub fn new(kind: SchemaKind) -> SchemaMetadata
pub fn named(name: impl Into<String>, kind: SchemaKind) -> SchemaMetadata
pub fn array(items: SchemaMetadata) -> SchemaMetadata
pub fn name(&self) -> Option<&str>
pub fn format(self, format: impl Into<String>) -> SchemaMetadata
pub fn discriminator(self, property: impl Into<String>) -> SchemaMetadata
pub fn kind(&self) -> &SchemaKind
pub fn format_value(&self) -> Option<&str>
pub fn discriminator_property(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for SchemaMetadata
impl Clone for SchemaMetadata
Source§fn clone(&self) -> SchemaMetadata
fn clone(&self) -> SchemaMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchemaMetadata
impl Debug for SchemaMetadata
Source§impl PartialEq for SchemaMetadata
impl PartialEq for SchemaMetadata
impl StructuralPartialEq for SchemaMetadata
Auto Trait Implementations§
impl Freeze for SchemaMetadata
impl RefUnwindSafe for SchemaMetadata
impl Send for SchemaMetadata
impl Sync for SchemaMetadata
impl Unpin for SchemaMetadata
impl UnsafeUnpin for SchemaMetadata
impl UnwindSafe for SchemaMetadata
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