pub struct MediaType {
pub schema: Option<ReferenceOr<Schema>>,
pub example: Option<Examples>,
pub encoding: BTreeMap<String, Encoding>,
pub extensions: IndexMap<String, Value>,
}
Expand description
Each Media Type Object provides schema and examples for the media type identified by its key.
Fields§
§schema: Option<ReferenceOr<Schema>>
The schema defining the content of the request, response, or parameter.
example: Option<Examples>
§encoding: BTreeMap<String, Encoding>
§extensions: IndexMap<String, Value>
This object MAY be extended with Specification Extensions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MediaType
impl RefUnwindSafe for MediaType
impl Send for MediaType
impl Sync for MediaType
impl Unpin for MediaType
impl UnwindSafe for MediaType
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