pub struct ExampleObject {
pub name: Option<String>,
pub description: Option<String>,
pub summary: Option<String>,
pub value: Option<ExampleValue>,
}
Expand description
Defines an example that is intended to match a Schema
of a given ContentDescriptor
.
Fields§
§name: Option<String>
Cannonical name of the example.
description: Option<String>
A verbose description of the example
GitHub Flavored Markdown syntax may be used for rich text representation.
summary: Option<String>
A short summary of the example.
value: Option<ExampleValue>
The value of the example.
Trait Implementations§
Source§impl Clone for ExampleObject
impl Clone for ExampleObject
Source§fn clone(&self) -> ExampleObject
fn clone(&self) -> ExampleObject
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 ExampleObject
impl Debug for ExampleObject
Source§impl Default for ExampleObject
impl Default for ExampleObject
Source§fn default() -> ExampleObject
fn default() -> ExampleObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExampleObject
impl<'de> Deserialize<'de> for ExampleObject
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 ExampleObject
impl RefUnwindSafe for ExampleObject
impl Send for ExampleObject
impl Sync for ExampleObject
impl Unpin for ExampleObject
impl UnwindSafe for ExampleObject
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