Struct azure_core::CollectedResponse
source · [−]pub struct CollectedResponse { /* private fields */ }
Expand description
A response with the body collected as bytes
Implementations
sourceimpl CollectedResponse
impl CollectedResponse
sourcepub fn new(status: StatusCode, headers: Headers, body: Bytes) -> Self
pub fn new(status: StatusCode, headers: Headers, body: Bytes) -> Self
Create a new instance
sourcepub fn status(&self) -> &StatusCode
pub fn status(&self) -> &StatusCode
Get the status
sourcepub async fn from_response(response: Response) -> Result<Self>
pub async fn from_response(response: Response) -> Result<Self>
From a response
Trait Implementations
sourceimpl Clone for CollectedResponse
impl Clone for CollectedResponse
sourcefn clone(&self) -> CollectedResponse
fn clone(&self) -> CollectedResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for CollectedResponse
impl Send for CollectedResponse
impl Sync for CollectedResponse
impl Unpin for CollectedResponse
impl UnwindSafe for CollectedResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more