pub struct RequestBodyDef {
pub header: TypeHeader,
pub variants: MediaTypeVariants,
/* private fields */
}Fields§
§header: TypeHeader§variants: MediaTypeVariantsImplementations§
Source§impl RequestBodyDef
impl RequestBodyDef
pub fn new(header: TypeHeader, variants: Vec<MediaTypeVariant>) -> Self
pub fn symbol_name(&self) -> &str
Trait Implementations§
Source§impl Clone for RequestBodyDef
impl Clone for RequestBodyDef
Source§fn clone(&self) -> RequestBodyDef
fn clone(&self) -> RequestBodyDef
Returns a duplicate of the value. Read more
1.0.0 · 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 RequestBodyDef
impl Debug for RequestBodyDef
Source§impl From<RequestBodyDef> for Definition
impl From<RequestBodyDef> for Definition
Source§fn from(this: RequestBodyDef) -> Self
fn from(this: RequestBodyDef) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RequestBodyDef
impl PartialEq for RequestBodyDef
impl StructuralPartialEq for RequestBodyDef
Auto Trait Implementations§
impl Freeze for RequestBodyDef
impl RefUnwindSafe for RequestBodyDef
impl Send for RequestBodyDef
impl Sync for RequestBodyDef
impl Unpin for RequestBodyDef
impl UnwindSafe for RequestBodyDef
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