pub struct Response<T> { /* private fields */ }
Implementations§
Source§impl<T> Response<T>
impl<T> Response<T>
pub fn into_inner(self) -> Result<T, ApiError>
pub fn inner(&self) -> &Result<T, ApiError>
pub fn request_id(&self) -> &Option<String>
pub fn project_id(&self) -> &Option<String>
pub fn headers(&self) -> &HeaderMap
pub fn status_code(&self) -> StatusCode
pub fn raw_body(&self) -> &str
pub fn url(&self) -> &Url
pub fn is_err(&self) -> bool
pub fn is_ok(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Response<T>where
T: Freeze,
impl<T> RefUnwindSafe for Response<T>where
T: RefUnwindSafe,
impl<T> Send for Response<T>where
T: Send,
impl<T> Sync for Response<T>where
T: Sync,
impl<T> Unpin for Response<T>where
T: Unpin,
impl<T> UnwindSafe for Response<T>where
T: UnwindSafe,
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