pub enum MediaTypeExample {
Example {
example: Value,
},
Examples {
examples: IndexMap<Str, ObjectOrReference<Example>>,
},
}
Variants§
Example
Example of the media type. The example object SHOULD be in the correct format as
specified by the media type. The example
field is mutually exclusive of the
examples
field. Furthermore, if referencing a schema
which contains an example,
the example
value SHALL override the example provided by the schema.
Examples
Examples of the media type. Each example object SHOULD match the media type and
specified schema if present. The examples
field is mutually exclusive of
the example
field. Furthermore, if referencing a schema
which contains an
example, the examples
value SHALL override the example provided by the schema.
Fields
§
examples: IndexMap<Str, ObjectOrReference<Example>>
Trait Implementations§
Source§impl Clone for MediaTypeExample
impl Clone for MediaTypeExample
Source§fn clone(&self) -> MediaTypeExample
fn clone(&self) -> MediaTypeExample
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 MediaTypeExample
impl Debug for MediaTypeExample
Source§impl<'de> Deserialize<'de> for MediaTypeExample
impl<'de> Deserialize<'de> for MediaTypeExample
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 MediaTypeExample
impl PartialEq for MediaTypeExample
Source§impl Serialize for MediaTypeExample
impl Serialize for MediaTypeExample
impl StructuralPartialEq for MediaTypeExample
Auto Trait Implementations§
impl Freeze for MediaTypeExample
impl RefUnwindSafe for MediaTypeExample
impl Send for MediaTypeExample
impl Sync for MediaTypeExample
impl Unpin for MediaTypeExample
impl UnwindSafe for MediaTypeExample
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