Enum jsona_openapi::OneOrMultiExample
source · [−]pub enum OneOrMultiExample {
Example {
example: Value,
},
Examples {
examples: IndexMap<String, ObjectOrReference<Example>>,
},
}
Variants
Example
Fields
example: Value
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
Fields
examples: IndexMap<String, ObjectOrReference<Example>>
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.
Trait Implementations
sourceimpl Clone for OneOrMultiExample
impl Clone for OneOrMultiExample
sourcefn clone(&self) -> OneOrMultiExample
fn clone(&self) -> OneOrMultiExample
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OneOrMultiExample
impl Debug for OneOrMultiExample
sourceimpl<'de> Deserialize<'de> for OneOrMultiExample
impl<'de> Deserialize<'de> for OneOrMultiExample
sourcefn 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
sourceimpl PartialEq<OneOrMultiExample> for OneOrMultiExample
impl PartialEq<OneOrMultiExample> for OneOrMultiExample
sourcefn eq(&self, other: &OneOrMultiExample) -> bool
fn eq(&self, other: &OneOrMultiExample) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for OneOrMultiExample
impl Serialize for OneOrMultiExample
impl StructuralPartialEq for OneOrMultiExample
Auto Trait Implementations
impl RefUnwindSafe for OneOrMultiExample
impl Send for OneOrMultiExample
impl Sync for OneOrMultiExample
impl Unpin for OneOrMultiExample
impl UnwindSafe for OneOrMultiExample
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more