pub enum ExampleValue {
Embedded {
value: Value,
},
External {
external_value: Str,
},
}
Expand description
Embedded literal example or a URL that points to the literal example.
Variants§
Trait Implementations§
Source§impl Clone for ExampleValue
impl Clone for ExampleValue
Source§fn clone(&self) -> ExampleValue
fn clone(&self) -> ExampleValue
Returns a duplicate 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
Source§impl<'de> Deserialize<'de> for ExampleValue
impl<'de> Deserialize<'de> for ExampleValue
Source§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
Source§impl PartialEq for ExampleValue
impl PartialEq for ExampleValue
Source§impl Serialize for ExampleValue
impl Serialize for ExampleValue
impl StructuralPartialEq 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