pub struct OpenApiMediaType {
pub schema: OpenApiSchema,
}Expand description
OpenAPI media type metadata.
Fields§
§schema: OpenApiSchemaImplementations§
Source§impl OpenApiMediaType
impl OpenApiMediaType
pub fn new(schema: OpenApiSchema) -> Self
Trait Implementations§
Source§impl Clone for OpenApiMediaType
impl Clone for OpenApiMediaType
Source§fn clone(&self) -> OpenApiMediaType
fn clone(&self) -> OpenApiMediaType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OpenApiMediaType
impl Debug for OpenApiMediaType
Source§impl PartialEq for OpenApiMediaType
impl PartialEq for OpenApiMediaType
Source§fn eq(&self, other: &OpenApiMediaType) -> bool
fn eq(&self, other: &OpenApiMediaType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OpenApiMediaType
impl Serialize for OpenApiMediaType
impl StructuralPartialEq for OpenApiMediaType
Auto Trait Implementations§
impl Freeze for OpenApiMediaType
impl RefUnwindSafe for OpenApiMediaType
impl Send for OpenApiMediaType
impl Sync for OpenApiMediaType
impl Unpin for OpenApiMediaType
impl UnsafeUnpin for OpenApiMediaType
impl UnwindSafe for OpenApiMediaType
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