[][src]Struct twitch_api2::tmi::TMIClient

pub struct TMIClient { /* fields omitted */ }

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]

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

impl Clone for TMIClient[src]

impl Default for TMIClient[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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