[−][src]Struct twitch_api2::tmi::TMIClient
Client for the twitch TMI endpoint, almost entirely undocumented and certainly not supported.
Examples
let client = TMIClient::new(); println!("{:?}", client.get_chatters("justinfan10").await?);
Implementations
impl TMIClient
[src]
pub fn new() -> TMIClient
[src]
Create a new client with a default reqwest::Client
pub fn with_client(client: Client) -> TMIClient
[src]
Create a new client with an existing reqwest::Client
pub async fn get_chatters<'_, '_>(
&'_ self,
broadcaster: &'_ str
) -> Result<GetChatters, RequestError>
[src]
&'_ self,
broadcaster: &'_ str
) -> Result<GetChatters, RequestError>
Get all the chatters in the chat
Notes
This function will aside from url sanitize the broadcasters username, will also remove any #
and make it lowercase ascii
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for TMIClient
impl Send for TMIClient
impl Sync for TMIClient
impl Unpin for TMIClient
impl !UnwindSafe for TMIClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,