[][src]Enum oas3::MediaTypeExamples

pub enum MediaTypeExamples {
    Example {
        example: Value,
    },
    Examples {
        examples: BTreeMap<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.

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: BTreeMap<String, ObjectOrReference<Example>>

Methods

impl MediaTypeExamples[src]

pub fn resolve_all(&self, spec: &Spec) -> BTreeMap<String, Example>[src]

Trait Implementations

impl Clone for MediaTypeExamples[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<MediaTypeExamples> for MediaTypeExamples[src]

impl Debug for MediaTypeExamples[src]

impl Serialize for MediaTypeExamples[src]

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

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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