[−][src]Struct twirl::TwitchClient
Methods
impl TwitchClient
[src]
pub fn new(client_id: impl Into<String>) -> Self
[src]
pub fn with_credentials(
client_id: impl Into<String>,
access_token: impl Into<String>,
scopes: Option<Vec<String>>
) -> Self
[src]
client_id: impl Into<String>,
access_token: impl Into<String>,
scopes: Option<Vec<String>>
) -> Self
pub fn with_client_credentials(
client_id: impl Into<String>,
client_secret: impl Into<String>
) -> Self
[src]
client_id: impl Into<String>,
client_secret: impl Into<String>
) -> Self
pub async fn call_api<'_, '_, T, B>(
&'_ mut self,
call: TwitchAPICall<'_, B>
) -> Result<T, Box<dyn Error + Send + Sync>> where
T: DeserializeOwned,
[src]
&'_ mut self,
call: TwitchAPICall<'_, B>
) -> Result<T, Box<dyn Error + Send + Sync>> where
T: DeserializeOwned,
pub async fn call_api_with_credentials<'_, T, B>(
call: TwitchAPICall<'_, B>,
client_id: impl StringOption,
access_token: impl StringOption
) -> Result<T, Box<dyn Error + Send + Sync>> where
T: DeserializeOwned,
[src]
call: TwitchAPICall<'_, B>,
client_id: impl StringOption,
access_token: impl StringOption
) -> Result<T, Box<dyn Error + Send + Sync>> where
T: DeserializeOwned,
pub async fn get_app_access_token(
client_id: impl Into<String>,
client_secret: impl Into<String>
) -> Result<AccessToken, Box<dyn Error + Send + Sync>>
[src]
client_id: impl Into<String>,
client_secret: impl Into<String>
) -> Result<AccessToken, Box<dyn Error + Send + Sync>>
pub async fn refresh_access_token(
client_id: impl Into<String>,
client_secret: impl Into<String>,
refresh_token: impl Into<String>
) -> Result<AccessToken, Box<dyn Error + Send + Sync>>
[src]
client_id: impl Into<String>,
client_secret: impl Into<String>,
refresh_token: impl Into<String>
) -> Result<AccessToken, Box<dyn Error + Send + Sync>>
pub async fn get_token_info_for_access_token(
client_id: impl Into<String>,
access_token: impl Into<String>
) -> Result<TokenInfo, Box<dyn Error + Send + Sync>>
[src]
client_id: impl Into<String>,
access_token: impl Into<String>
) -> Result<TokenInfo, Box<dyn Error + Send + Sync>>
pub async fn get_me<'_>(
&'_ mut self
) -> Result<User, Box<dyn Error + Send + Sync>>
[src]
&'_ mut self
) -> Result<User, Box<dyn Error + Send + Sync>>
pub async fn get_user_by_login<'_>(
&'_ mut self,
login: impl Into<String>
) -> Result<Option<User>, Box<dyn Error + Send + Sync>>
[src]
&'_ mut self,
login: impl Into<String>
) -> Result<Option<User>, Box<dyn Error + Send + Sync>>
Auto Trait Implementations
impl Send for TwitchClient
impl Unpin for TwitchClient
impl Sync for TwitchClient
impl !UnwindSafe for TwitchClient
impl !RefUnwindSafe for TwitchClient
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,