Struct twitch_api2::helix::clips::get_clips::GetClipsRequest[][src]

#[non_exhaustive]pub struct GetClipsRequest {
    pub broadcaster_id: Option<UserId>,
    pub game_id: Option<CategoryId>,
    pub id: Vec<String>,
    pub after: Option<Cursor>,
    pub before: Option<Cursor>,
    pub ended_at: Option<Timestamp>,
    pub first: Option<usize>,
    pub started_at: Option<Timestamp>,
}
This is supported on crate feature helix only.

Query Parameters for Get Clips

get-clips

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct {{ .. }} syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
broadcaster_id: Option<UserId>

ID of the broadcaster for whom clips are returned. The number of clips returned is determined by the first query-string parameter (default: 20). Results are ordered by view count.

game_id: Option<CategoryId>

ID of the game for which clips are returned. The number of clips returned is determined by the first query-string parameter (default: 20). Results are ordered by view count.

id: Vec<String>

ID of the clip being queried. Limit: 100.

after: Option<Cursor>

Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. This applies only to queries specifying broadcaster_id or game_id. The cursor value specified here is from the pagination response field of a prior query.

before: Option<Cursor>

Cursor for backward pagination: tells the server where to start fetching the next set of results, in a multi-page response. This applies only to queries specifying broadcaster_id or game_id. The cursor value specified here is from the pagination response field of a prior query.

ended_at: Option<Timestamp>

Ending date/time for returned clips, in RFC3339 format. (Note that the seconds value is ignored.) If this is specified, started_at also must be specified; otherwise, the time period is ignored.

first: Option<usize>

Maximum number of objects to return. Maximum: 100. Default: 20.

started_at: Option<Timestamp>

Starting date/time for returned clips, in RFC3339 format. (Note that the seconds value is ignored.) If this is specified, ended_at also should be specified; otherwise, the ended_at date/time will be 1 week after the started_at value.

Implementations

impl GetClipsRequest[src]

pub fn builder() -> GetClipsRequestBuilder<((), (), (), (), (), (), (), ())>[src]

Create a builder for building GetClipsRequest. On the builder, call .broadcaster_id(...)(optional), .game_id(...)(optional), .id(...)(optional), .after(...)(optional), .before(...)(optional), .ended_at(...)(optional), .first(...)(optional), .started_at(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of GetClipsRequest.

Trait Implementations

impl Clone for GetClipsRequest[src]

impl Debug for GetClipsRequest[src]

impl<'de> Deserialize<'de> for GetClipsRequest[src]

impl Paginated for GetClipsRequest[src]

impl PartialEq<GetClipsRequest> for GetClipsRequest[src]

impl Request for GetClipsRequest[src]

type Response = Vec<Clip>

Response type. twitch's response will deserialize to this.

impl RequestGet for GetClipsRequest[src]

impl Serialize for GetClipsRequest[src]

impl StructuralPartialEq for GetClipsRequest[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>, 

impl<T> WithSubscriber for T[src]