pub struct MediaTypeObject {
pub schema: Option<JsonSchema2020>,
pub example: Option<Value>,
pub examples: Option<HashMap<String, Example>>,
}Expand description
Media type object
Fields§
§schema: Option<JsonSchema2020>Schema for the content
example: Option<Value>Example value
examples: Option<HashMap<String, Example>>Named examples
Trait Implementations§
Source§impl Clone for MediaTypeObject
impl Clone for MediaTypeObject
Source§fn clone(&self) -> MediaTypeObject
fn clone(&self) -> MediaTypeObject
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 MediaTypeObject
impl Debug for MediaTypeObject
Source§impl<'de> Deserialize<'de> for MediaTypeObject
impl<'de> Deserialize<'de> for MediaTypeObject
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 MediaTypeObject
impl RefUnwindSafe for MediaTypeObject
impl Send for MediaTypeObject
impl Sync for MediaTypeObject
impl Unpin for MediaTypeObject
impl UnwindSafe for MediaTypeObject
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