Struct apistos_models::paths::MediaType
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)