[]Struct rweb::openapi::Example

pub struct Example {
    pub summary: Cow<'static, str>,
    pub description: Cow<'static, str>,
    pub value: Option<Value>,
}

Fields

summary: Cow<'static, str>

Short description for the example.

description: Cow<'static, str>

Long description for the example. CommonMark syntax MAY be used for rich text representation.

value: Option<Value>

Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary.

Trait Implementations

impl Clone for Example

impl Debug for Example

impl Default for Example

impl<'de> Deserialize<'de> for Example

impl PartialEq<Example> for Example

impl Serialize for Example

impl StructuralPartialEq for Example

Auto Trait Implementations

impl RefUnwindSafe for Example

impl Send for Example

impl Sync for Example

impl Unpin for Example

impl UnwindSafe for Example

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: Deserialize<'de>, 
[src]

impl<T> From<T> 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>,