pub struct Example {
pub summary: Option<String>,
pub description: Option<String>,
pub value: ExampleValue,
pub extensions: IndexMap<String, Value>,
}
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: ExampleValue
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.
extensions: IndexMap<String, Value>
This object MAY be extended with Specification Extensions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Example
impl RefUnwindSafe for Example
impl Send for Example
impl Sync for Example
impl Unpin for Example
impl UnwindSafe for Example
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more