Struct s3::request::ResponseData
source · pub struct ResponseData { /* private fields */ }
Implementations§
source§impl ResponseData
impl ResponseData
pub fn new( bytes: Bytes, status_code: u16, headers: HashMap<String, String> ) -> ResponseData
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn to_vec(self) -> Vec<u8>
pub fn bytes(&self) -> &Bytes
pub fn status_code(&self) -> u16
pub fn as_str(&self) -> Result<&str, Utf8Error>
pub fn to_string(&self) -> Result<String, Utf8Error>
pub fn headers(&self) -> HashMap<String, String>
Trait Implementations§
source§impl Debug for ResponseData
impl Debug for ResponseData
source§impl Display for ResponseData
impl Display for ResponseData
Auto Trait Implementations§
impl !Freeze for ResponseData
impl RefUnwindSafe for ResponseData
impl Send for ResponseData
impl Sync for ResponseData
impl Unpin for ResponseData
impl UnwindSafe for ResponseData
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