#[non_exhaustive]pub struct GetBroadcasterSubscriptionsRequest {
pub broadcaster_id: UserId,
pub user_id: Vec<UserId>,
pub after: Option<Cursor>,
pub first: Option<String>,
}helix only.Expand description
Query Parameters for Get Broadcaster Subscriptions
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.broadcaster_id: UserIdUser ID of the broadcaster. Must match the User ID in the Bearer token.
user_id: Vec<UserId>Unique identifier of account to get subscription status of. Accepts up to 100 values.
after: Option<Cursor>Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
first: Option<String>Number of values to be returned per page. Limit: 100. Default: 20.
Implementations§
Source§impl GetBroadcasterSubscriptionsRequest
impl GetBroadcasterSubscriptionsRequest
Sourcepub fn builder() -> GetBroadcasterSubscriptionsRequestBuilder<((), (), (), ())>
pub fn builder() -> GetBroadcasterSubscriptionsRequestBuilder<((), (), (), ())>
Create a builder for building GetBroadcasterSubscriptionsRequest.
On the builder, call .broadcaster_id(...), .user_id(...)(optional), .after(...)(optional), .first(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of GetBroadcasterSubscriptionsRequest.
Trait Implementations§
Source§impl Clone for GetBroadcasterSubscriptionsRequest
impl Clone for GetBroadcasterSubscriptionsRequest
Source§fn clone(&self) -> GetBroadcasterSubscriptionsRequest
fn clone(&self) -> GetBroadcasterSubscriptionsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for GetBroadcasterSubscriptionsRequest
impl<'de> Deserialize<'de> for GetBroadcasterSubscriptionsRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for GetBroadcasterSubscriptionsRequest
impl PartialEq for GetBroadcasterSubscriptionsRequest
Source§fn eq(&self, other: &GetBroadcasterSubscriptionsRequest) -> bool
fn eq(&self, other: &GetBroadcasterSubscriptionsRequest) -> bool
self and other values to be equal, and is used by ==.Source§impl Request for GetBroadcasterSubscriptionsRequest
impl Request for GetBroadcasterSubscriptionsRequest
Source§const PATH: &'static str = "subscriptions"
const PATH: &'static str = "subscriptions"
channels for Get Channel InformationSource§const SCOPE: &'static [Scope]
const SCOPE: &'static [Scope]
twitch_oauth2 only.Source§type Response = Vec<BroadcasterSubscription>
type Response = Vec<BroadcasterSubscription>
Source§const OPT_SCOPE: &'static [Scope] = _
const OPT_SCOPE: &'static [Scope] = _
twitch_oauth2 only.Source§fn get_uri(&self) -> Result<Uri, InvalidUri>
fn get_uri(&self) -> Result<Uri, InvalidUri>
Source§fn get_bare_uri() -> Result<Uri, InvalidUri>
fn get_bare_uri() -> Result<Uri, InvalidUri>
Source§impl RequestGet for GetBroadcasterSubscriptionsRequest
impl RequestGet for GetBroadcasterSubscriptionsRequest
Source§fn create_request(
&self,
token: &str,
client_id: &str,
) -> Result<Request<Bytes>, CreateRequestError>
fn create_request( &self, token: &str, client_id: &str, ) -> Result<Request<Bytes>, CreateRequestError>
http::Request from this Request in your client