pub struct Raw { /* private fields */ }Expand description
Raw Gingr response body paired with status for later DTO decoding.
Implementations§
Source§impl Raw
impl Raw
Sourcepub fn new(status: HttpStatus, body: impl Into<Bytes>) -> Self
pub fn new(status: HttpStatus, body: impl Into<Bytes>) -> Self
Constructs this typed Gingr boundary value after the caller has chosen the provider input to trust.
Sourcepub fn status(&self) -> HttpStatus
pub fn status(&self) -> HttpStatus
Returns the HTTP status reported by Gingr.
Trait Implementations§
impl Eq for Raw
impl StructuralPartialEq for Raw
Auto Trait Implementations§
impl !Freeze for Raw
impl RefUnwindSafe for Raw
impl Send for Raw
impl Sync for Raw
impl Unpin for Raw
impl UnsafeUnpin for Raw
impl UnwindSafe for Raw
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