pub struct MediaDoc {
pub content_type: String,
pub schema: Option<Value>,
}Expand description
A response body of one media type; without a schema it documents a body of that type (a file) with no structure.
Fields§
§content_type: String§schema: Option<Value>Trait Implementations§
Source§impl<'de> Deserialize<'de> for MediaDoc
impl<'de> Deserialize<'de> for MediaDoc
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 MediaDoc
Auto Trait Implementations§
impl Freeze for MediaDoc
impl RefUnwindSafe for MediaDoc
impl Send for MediaDoc
impl Sync for MediaDoc
impl Unpin for MediaDoc
impl UnsafeUnpin for MediaDoc
impl UnwindSafe for MediaDoc
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