pub struct Response<R> { /* private fields */ }Implementations§
Source§impl<R> Response<R>where
R: AirLabsRequest,
impl<R> Response<R>where
R: AirLabsRequest,
pub fn new(raw: impl ToString, duration: Duration) -> Self
pub fn duration(&self) -> Duration
pub fn raw(&self) -> &str
pub fn json(&self) -> Result<Value>
pub fn is_free(&self) -> Result<bool>
pub fn api_response( &self, ) -> Result<Response<ResponseType<R::Response, R::ResponseFree>>>
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Response<R>
impl<R> RefUnwindSafe for Response<R>where
R: RefUnwindSafe,
impl<R> Send for Response<R>where
R: Send,
impl<R> Sync for Response<R>where
R: Sync,
impl<R> Unpin for Response<R>where
R: Unpin,
impl<R> UnwindSafe for Response<R>where
R: 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