pub struct Media {
pub schema: Option<RefOrObject<Schema>>,
pub example: Option<Value>,
pub examples: Option<BTreeMap<String, RefOrObject<Example>>>,
pub encoding: Option<BTreeMap<String, Encoding>>,
}
Expand description
§Media
Each Media Type Object provides schema and examples for the media type identified by its key.
Fields§
§schema: Option<RefOrObject<Schema>>
The schema defining the content of the request, response, or parameter.
example: Option<Value>
Example of the media type.
examples: Option<BTreeMap<String, RefOrObject<Example>>>
Examples of the media type.
encoding: Option<BTreeMap<String, Encoding>>
A map between a property name and its encoding information.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Media
impl<'de> Deserialize<'de> for Media
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
impl StructuralPartialEq for Media
Auto Trait Implementations§
impl Freeze for Media
impl RefUnwindSafe for Media
impl Send for Media
impl Sync for Media
impl Unpin for Media
impl UnwindSafe for Media
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