pub enum ComponentOrInlineSchema {
Component {
name: Str,
},
Inline(Schema),
}
Expand description
Either a reference to a component schema or an [inline] schema itself.
Variants§
Component
Fields
§
name: Str
Name of the component schema.
Serialized as JSON reference path to the definition within the specification document
Inline(Schema)
Implementations§
Trait Implementations§
Source§impl Clone for ComponentOrInlineSchema
impl Clone for ComponentOrInlineSchema
Source§fn clone(&self) -> ComponentOrInlineSchema
fn clone(&self) -> ComponentOrInlineSchema
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 ComponentOrInlineSchema
impl Debug for ComponentOrInlineSchema
Source§impl<'de> Deserialize<'de> for ComponentOrInlineSchema
impl<'de> Deserialize<'de> for ComponentOrInlineSchema
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 PartialEq for ComponentOrInlineSchema
impl PartialEq for ComponentOrInlineSchema
Source§impl Serialize for ComponentOrInlineSchema
impl Serialize for ComponentOrInlineSchema
impl StructuralPartialEq for ComponentOrInlineSchema
Auto Trait Implementations§
impl Freeze for ComponentOrInlineSchema
impl RefUnwindSafe for ComponentOrInlineSchema
impl Send for ComponentOrInlineSchema
impl Sync for ComponentOrInlineSchema
impl Unpin for ComponentOrInlineSchema
impl UnwindSafe for ComponentOrInlineSchema
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