Enum rweb_openapi::v3_0::ExampleValue [−][src]
Expand description
Embedded literal example or a URL that points to the literal example.
Variants
Fields of Embedded
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.
Fields of External
external_value: Str
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ExampleValue
impl Send for ExampleValue
impl Sync for ExampleValue
impl Unpin for ExampleValue
impl UnwindSafe for ExampleValue
Blanket Implementations
Mutably borrows from an owned value. Read more