pub struct ApiResponse<A, T, M> { /* private fields */ }Implementations§
Source§impl<A, T, M> ApiResponse<A, T, M>
impl<A, T, M> ApiResponse<A, T, M>
pub fn client(&self) -> &TwitterApi<A>
pub fn url(&self) -> &Url
pub fn payload(&self) -> &ApiPayload<T, M>
pub fn into_payload(self) -> ApiPayload<T, M>
pub fn into_data(self) -> Option<T>
pub fn into_meta(self) -> Option<M>
pub fn into_includes(self) -> Option<Expansions>
pub fn into_errors(self) -> Option<Vec<ApiError>>
Methods from Deref<Target = ApiPayload<T, M>>§
Trait Implementations§
Source§impl<A, T, M> Clone for ApiResponse<A, T, M>
impl<A, T, M> Clone for ApiResponse<A, T, M>
Source§impl<A, T, M> Deref for ApiResponse<A, T, M>
impl<A, T, M> Deref for ApiResponse<A, T, M>
Source§impl<A, T, M> PaginableApiResponse for ApiResponse<A, T, M>where
A: Authorization + Send + Sync,
T: DeserializeOwned + Send + Sync,
M: PaginationMeta + DeserializeOwned + Send + Sync,
impl<A, T, M> PaginableApiResponse for ApiResponse<A, T, M>where
A: Authorization + Send + Sync,
T: DeserializeOwned + Send + Sync,
M: PaginationMeta + DeserializeOwned + Send + Sync,
fn next_page<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Self>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn previous_page<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Self>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<A, T, M> Freeze for ApiResponse<A, T, M>
impl<A, T, M> !RefUnwindSafe for ApiResponse<A, T, M>
impl<A, T, M> Send for ApiResponse<A, T, M>
impl<A, T, M> Sync for ApiResponse<A, T, M>
impl<A, T, M> Unpin for ApiResponse<A, T, M>
impl<A, T, M> !UnwindSafe for ApiResponse<A, T, M>
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