pub enum ExampleValue {
Value(Value),
ExternalValue(String),
}
Variants§
Value(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.
ExternalValue(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.
Trait Implementations§
Source§impl Clone for ExampleValue
impl Clone for ExampleValue
Source§fn clone(&self) -> ExampleValue
fn clone(&self) -> ExampleValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExampleValue
impl Debug for ExampleValue
Auto Trait Implementations§
impl Freeze for ExampleValue
impl RefUnwindSafe for ExampleValue
impl Send for ExampleValue
impl Sync for ExampleValue
impl Unpin for ExampleValue
impl UnwindSafe for ExampleValue
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