pub enum ExampleValue {
Value(Value),
External(String),
}
Expand description
The example value of an ExampleObject
.
Variants§
Value(Value)
The value is a JSON object embedded in the document.
External(String)
The value is a JSON object embedded in the document. A link to an external document containing the value.
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
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