pub struct ProductOSResponse { /* private fields */ }Implementations§
source§impl ProductOSResponse
impl ProductOSResponse
pub fn new_async(r: Response) -> ProductOSResponse
pub fn new_sync(r: Response) -> ProductOSResponse
pub fn status(&self) -> StatusCode
pub fn status_code(&self) -> u16
pub fn get_headers(&self) -> HashMap<String, String, RandomState>
pub fn response_url(&self) -> String
pub async fn text(self) -> impl Future<Output = Result<String, Error>>
pub async fn json(self) -> impl Future<Output = Result<Value, Error>>
pub async fn bytes(self) -> impl Future<Output = Result<Bytes, Error>>
pub async fn stream(self) -> impl Future<Output = Result<Option<Bytes>, Error>>
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§
§impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere T: Any,
fn get_type_id(&self) -> TypeId
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