Enum rweb_openapi::v3_0::MediaTypeExample [−][src]
pub enum MediaTypeExample { Example { example: Value, }, Examples { examples: IndexMap<Str, ObjectOrReference<Example>>, }, }
Variants
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.
Fields of Example
example: Value
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 of Examples
examples: IndexMap<Str, ObjectOrReference<Example>>
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MediaTypeExample
impl Send for MediaTypeExample
impl Sync for MediaTypeExample
impl Unpin for MediaTypeExample
impl UnwindSafe for MediaTypeExample
Blanket Implementations
Mutably borrows from an owned value. Read more