Struct openapiv3::Example [−][src]
Fields
summary: Option<String>
Short description for the example.
description: Option<String>
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.
external_value: Option<String>
A URL that points to the literal example.
This provides the capability to reference examples that cannot
easily be included in JSON or YAML documents. The value
field and
externalValue
field are mutually exclusive.
extensions: IndexMap<String, Value>
Inline extensions to this object.
Trait Implementations
impl Clone for Example
[src]
impl Debug for Example
[src]
impl Default for Example
[src]
impl<'de> Deserialize<'de> for Example
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Example> for Example
[src]
impl Serialize for Example
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Example
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,