Struct twitch_api_rs::resource::users::get_users::GetUsersRequest[][src]

pub struct GetUsersRequest<A> where
    A: AuthToken
{ /* fields omitted */ }

Request to the Get Users endpoint

See module level documentation for usage

Implementations

impl<A: AuthToken> GetUsersRequest<A>[src]

pub fn set_auth(&mut self, auth: A) -> &mut Self[src]

Set the authorization token to use

Consumes the token, so should be cloned if you plan to re-use TODO offer reference counted storage for fewer allocations.

pub fn add_id<S: Into<UserId>>(&mut self, id: S) -> &mut Self[src]

Add the id to the set of ids to be sent. May not have more than 100 ids and logins

pub fn set_ids<C, S>(&mut self, ids: C) -> &mut Self where
    C: IntoIterator<Item = S>,
    S: Into<UserId>, 
[src]

Replace the set of ids to be sent

let mut req = GetUsersRequest::builder();
req.set_ids(vec!["477906794"]);
// ...

pub fn clear_ids(&mut self) -> &mut Self[src]

Clear the set of ids to be sent

pub fn add_login<S: Into<UserName>>(&mut self, login: S) -> &mut Self[src]

Add the login to the set of logins to be sent. May not have more than 100 ids and logins

pub fn clear_logins(&mut self) -> &mut Self[src]

Clear the set of ids to be sent

pub fn set_logins<C, S>(&mut self, logins: C) -> &mut Self where
    C: IntoIterator<Item = S>,
    S: Into<UserName>, 
[src]

Replace the set of logins to be sent

let mut req = GetUsersRequest::builder();
req.set_ids(vec!["TheHoodlum12", "Denims"]);
// ...

Trait Implementations

impl<A: Debug> Debug for GetUsersRequest<A> where
    A: AuthToken
[src]

impl<A> Request for GetUsersRequest<A> where
    A: AuthToken + Send
[src]

type Headers = A

The type that represents the headers sent with this request

type Parameters = Self

The type that represents the query parameters sent with this request

type Body = ()

The type that represents the body of this request

type Response = GetUsersResponse

The type returned by a sucessful request, must be DeserializeOwned and have at least a static lifetime (owned). Read more

type ErrorCodes = CommonResponseCodes

The type that encapsulates the error codes that this endpoint can return, must have at least a static lifetime (owned). Read more

Auto Trait Implementations

impl<A> RefUnwindSafe for GetUsersRequest<A> where
    A: RefUnwindSafe
[src]

impl<A> Send for GetUsersRequest<A> where
    A: Send
[src]

impl<A> Sync for GetUsersRequest<A> where
    A: Sync
[src]

impl<A> Unpin for GetUsersRequest<A> where
    A: Unpin
[src]

impl<A> UnwindSafe for GetUsersRequest<A> where
    A: UnwindSafe
[src]

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Parameters for T where
    T: ParametersExt
[src]

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