Struct product_os_request::ProductOSResponse
source · pub struct ProductOSResponse { /* private fields */ }Implementations§
source§impl ProductOSResponse
impl ProductOSResponse
pub fn new_async(r: Response) -> Self
pub fn status(&self) -> StatusCode
pub fn status_code(&self) -> u16
pub fn get_headers(&self) -> HashMap<String, String>
pub fn response_url(&self) -> String
pub async fn text(self) -> Result<String>
pub async fn json(self) -> Result<Value>
pub async fn bytes(self) -> Result<Bytes>
pub async fn stream(self) -> Result<Option<Bytes>>
pub fn as_error(self) -> Option<Error>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProductOSResponse
impl Send for ProductOSResponse
impl Sync for ProductOSResponse
impl Unpin for ProductOSResponse
impl !UnwindSafe for ProductOSResponse
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