Struct azure_core::CollectedResponse
source · pub struct CollectedResponse { /* private fields */ }
Expand description
A response with the body collected as bytes
Implementations§
source§impl 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§
source§impl Clone for CollectedResponse
impl Clone for CollectedResponse
source§fn clone(&self) -> CollectedResponse
fn clone(&self) -> CollectedResponse
Returns a copy 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 more