#[non_exhaustive]pub struct GetVipsRequest<'a> {
pub broadcaster_id: Cow<'a, UserIdRef>,
pub user_id: Collection<'a, UserId>,
pub first: Option<usize>,
pub after: Option<Cow<'a, CursorRef>>,
}
helix
only.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: Cow<'a, UserIdRef>
The ID of the broadcaster whose list of VIPs you want to get.
user_id: Collection<'a, UserId>
Filters the list for specific VIPs. To specify more than one user, include the user_id parameter for each user to get. For example, &user_id=1234&user_id=5678. The maximum number of IDs that you may specify is 100. Ignores those users in the list that aren’t VIPs.
first: Option<usize>
The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100. The default is 20.
after: Option<Cow<'a, CursorRef>>
The cursor used to get the next page of results. The Pagination object in the response contains the cursor’s value. Read more.
Implementations§
Source§impl<'a> GetVipsRequest<'a>
impl<'a> GetVipsRequest<'a>
Sourcepub fn builder() -> GetVipsRequestBuilder<'a, ((), (), (), ())>
pub fn builder() -> GetVipsRequestBuilder<'a, ((), (), (), ())>
Create a builder for building GetVipsRequest
.
On the builder, call .broadcaster_id(...)
, .user_id(...)
(optional), .first(...)
(optional), .after(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of GetVipsRequest
.
Source§impl<'a> GetVipsRequest<'a>
impl<'a> GetVipsRequest<'a>
Sourcepub fn broadcaster_id(broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a) -> Self
pub fn broadcaster_id(broadcaster_id: impl IntoCow<'a, UserIdRef> + 'a) -> Self
Get channel VIPs in channel
§Examples
use twitch_api::helix::channels::GetVipsRequest;
let request = GetVipsRequest::broadcaster_id("1337");
Sourcepub const fn first(self, first: usize) -> Self
pub const fn first(self, first: usize) -> Self
Set amount of results returned per page.
§Examples
use twitch_api::helix::channels::GetVipsRequest;
let request = GetVipsRequest::broadcaster_id("1234").first(100);
Sourcepub fn user_ids(self, user_ids: impl Into<Collection<'a, UserId>>) -> Self
pub fn user_ids(self, user_ids: impl Into<Collection<'a, UserId>>) -> Self
Filter response with these IDs
§Examples
use twitch_api::helix::channels::GetVipsRequest;
let user_ids: &[&twitch_types::UserIdRef] = &["1234".into()];
let request = GetVipsRequest::broadcaster_id("1337").user_ids(user_ids);
Trait Implementations§
Source§impl<'a> Clone for GetVipsRequest<'a>
impl<'a> Clone for GetVipsRequest<'a>
Source§fn clone(&self) -> GetVipsRequest<'a>
fn clone(&self) -> GetVipsRequest<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'a> Debug for GetVipsRequest<'a>
impl<'a> Debug for GetVipsRequest<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for GetVipsRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for GetVipsRequest<'a>
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 Paginated for GetVipsRequest<'_>
impl Paginated for GetVipsRequest<'_>
Source§impl<'a> PartialEq for GetVipsRequest<'a>
impl<'a> PartialEq for GetVipsRequest<'a>
Source§impl Request for GetVipsRequest<'_>
impl Request for GetVipsRequest<'_>
Source§const PATH: &'static str = "channels/vips"
const PATH: &'static str = "channels/vips"
channels
for Get Channel InformationSource§const SCOPE: Validator
const SCOPE: Validator
twitch_oauth2
only.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 GetVipsRequest<'_>
impl RequestGet for GetVipsRequest<'_>
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