[][src]Struct twitch_api2::helix::Response

pub struct Response<R, D> where
    R: Request<Response = D>, 
{ pub data: Vec<D>, pub pagination: Pagination, pub request: R, }

Response retrieved from endpoint. Data is the type in Request::Response

Fields

data: Vec<D>

Twitch's response field for data.

pagination: Pagination

A cursor value, to be used in a subsequent request to specify the starting point of the next set of results.

request: R

The request that was sent, used for Paginated

Implementations

impl<R, D> Response<R, D> where
    R: Request<Response = D> + Clone + Paginated + RequestGet,
    D: DeserializeOwned
[src]

pub async fn get_next<'_, '_>(
    self,
    client: &'_ HelixClient,
    token: &'_ impl TwitchToken
) -> Result<Option<Response<R, D>>, RequestError>
[src]

Get the next page in the responses.

Trait Implementations

impl<R: Debug, D: Debug> Debug for Response<R, D> where
    R: Request<Response = D>, 
[src]

impl<R: PartialEq, D: PartialEq> PartialEq<Response<R, D>> for Response<R, D> where
    R: Request<Response = D>, 
[src]

impl<R, D> StructuralPartialEq for Response<R, D> where
    R: Request<Response = D>, 
[src]

Auto Trait Implementations

impl<R, D> RefUnwindSafe for Response<R, D> where
    D: RefUnwindSafe,
    R: RefUnwindSafe

impl<R, D> Send for Response<R, D> where
    D: Send,
    R: Send

impl<R, D> Sync for Response<R, D> where
    D: Sync,
    R: Sync

impl<R, D> Unpin for Response<R, D> where
    D: Unpin,
    R: Unpin

impl<R, D> UnwindSafe for Response<R, D> where
    D: UnwindSafe,
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,