pub struct BodyVariant {
pub variant: RustIdent,
pub body: Body,
}Expand description
One content-type representation within a NegotiatedBody.
Fields§
§variant: RustIdentVariant identifier, named after the content kind (Json, Form,
Text).
body: BodyThe decoded body type and content kind for this representation.
Trait Implementations§
Source§impl Clone for BodyVariant
impl Clone for BodyVariant
Source§fn clone(&self) -> BodyVariant
fn clone(&self) -> BodyVariant
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 BodyVariant
impl Debug for BodyVariant
Source§impl PartialEq for BodyVariant
impl PartialEq for BodyVariant
impl StructuralPartialEq for BodyVariant
Auto Trait Implementations§
impl Freeze for BodyVariant
impl RefUnwindSafe for BodyVariant
impl Send for BodyVariant
impl Sync for BodyVariant
impl Unpin for BodyVariant
impl UnsafeUnpin for BodyVariant
impl UnwindSafe for BodyVariant
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