pub enum OneOrMultiExample {
Example {
example: Value,
},
Examples {
examples: IndexMap<String, 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<String, ObjectOrReference<Example>>
Trait Implementations§
Source§impl Clone for OneOrMultiExample
impl Clone for OneOrMultiExample
Source§fn clone(&self) -> OneOrMultiExample
fn clone(&self) -> OneOrMultiExample
Returns a copy 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 OneOrMultiExample
impl Debug for OneOrMultiExample
Source§impl<'de> Deserialize<'de> for OneOrMultiExample
impl<'de> Deserialize<'de> for OneOrMultiExample
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 OneOrMultiExample
impl PartialEq for OneOrMultiExample
Source§impl Serialize for OneOrMultiExample
impl Serialize for OneOrMultiExample
impl StructuralPartialEq for OneOrMultiExample
Auto Trait Implementations§
impl Freeze for OneOrMultiExample
impl RefUnwindSafe for OneOrMultiExample
impl Send for OneOrMultiExample
impl Sync for OneOrMultiExample
impl Unpin for OneOrMultiExample
impl UnwindSafe for OneOrMultiExample
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more