Struct s3::request::request_trait::ResponseData
source · [−]pub struct ResponseData { /* private fields */ }
Implementations
sourceimpl ResponseData
impl ResponseData
pub fn new(
bytes: Bytes,
status_code: u16,
headers: HashMap<String, String>
) -> ResponseData
pub fn as_slice(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [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
sourceimpl Debug for ResponseData
impl Debug for ResponseData
sourceimpl Display for ResponseData
impl Display for ResponseData
sourceimpl From<ResponseData> for Vec<u8>
impl From<ResponseData> for Vec<u8>
sourcefn from(data: ResponseData) -> Vec<u8>
fn from(data: ResponseData) -> Vec<u8>
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ResponseData
impl Send for ResponseData
impl Sync for ResponseData
impl Unpin for ResponseData
impl UnwindSafe for ResponseData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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