[][src]Enum rweb::openapi::MediaTypeExample

pub enum MediaTypeExample {
    Example {
        example: Value,
    },
    Examples {
        examples: IndexMap<Cow<'static, str>, ObjectOrReference<Example>, RandomState>,
    },
}

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.

Fields of Example

example: Value
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 of Examples

examples: IndexMap<Cow<'static, str>, ObjectOrReference<Example>, RandomState>

Trait Implementations

impl Clone for MediaTypeExample[src]

impl Debug for MediaTypeExample[src]

impl<'de> Deserialize<'de> for MediaTypeExample[src]

impl PartialEq<MediaTypeExample> for MediaTypeExample[src]

impl Serialize for MediaTypeExample[src]

impl StructuralPartialEq for MediaTypeExample[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,