Struct twitch_api2::helix::Response [−][src]
This is supported on crate feature
helix
only.Response retrieved from endpoint. Data is the type in Request::Response
Fields
data: D
Twitch's response field for data
.
pagination: Option<Cursor>
A cursor value, to be used in a subsequent request to specify the starting point of the next set of results.
request: Option<R>
The request that was sent, used for pagination.
Implementations
impl<R, D> Response<R, D> where
R: Request<Response = D> + Clone + Paginated + RequestGet + Debug,
D: DeserializeOwned + Debug + PartialEq,
[src]
R: Request<Response = D> + Clone + Paginated + RequestGet + Debug,
D: DeserializeOwned + Debug + PartialEq,
pub async fn get_next<'a, C: HttpClient<'a>>(
self,
client: &'a HelixClient<'a, C>,
token: &impl TwitchToken
) -> Result<Option<Response<R, D>>, ClientRequestError<<C as HttpClient<'a>>::Error>>
[src]
self,
client: &'a HelixClient<'a, C>,
token: &impl TwitchToken
) -> Result<Option<Response<R, D>>, ClientRequestError<<C as HttpClient<'a>>::Error>>
Get the next page in the responses.
Trait Implementations
impl<R: Debug, D: Debug> Debug for Response<R, D> where
R: Request<Response = D>,
D: DeserializeOwned + PartialEq,
[src]
R: Request<Response = D>,
D: DeserializeOwned + PartialEq,
impl<R: PartialEq, D: PartialEq> PartialEq<Response<R, D>> for Response<R, D> where
R: Request<Response = D>,
D: DeserializeOwned + PartialEq,
[src]
R: Request<Response = D>,
D: DeserializeOwned + PartialEq,
impl<R, D> StructuralPartialEq for Response<R, D> where
R: Request<Response = D>,
D: DeserializeOwned + PartialEq,
[src]
R: Request<Response = D>,
D: DeserializeOwned + PartialEq,
Auto Trait Implementations
impl<R, D> RefUnwindSafe for Response<R, D> where
D: RefUnwindSafe,
R: RefUnwindSafe,
[src]
D: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, D> Send for Response<R, D> where
D: Send,
R: Send,
[src]
D: Send,
R: Send,
impl<R, D> Sync for Response<R, D> where
D: Sync,
R: Sync,
[src]
D: Sync,
R: Sync,
impl<R, D> Unpin for Response<R, D> where
D: Unpin,
R: Unpin,
[src]
D: Unpin,
R: Unpin,
impl<R, D> UnwindSafe for Response<R, D> where
D: UnwindSafe,
R: UnwindSafe,
[src]
D: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,