[−][src]Struct twitchchat::UserConfigBuilder
Builder for making a UserConfig
Methods
impl UserConfigBuilder
[src]
pub fn name(self, name: impl ToString) -> Self
[src]
Name for the connection
pub fn token(self, token: impl ToString) -> Self
[src]
Token for the connection
This is an oauth token. It must have atleast two scopes: chat:read
, chat:edit
pub fn anonymous(self) -> Self
[src]
Uses an anonymous login
This uses "justin1234"
as the name and token
pub fn capabilities(self, caps: &[Capability]) -> Self
[src]
Capabilities to enable
pub fn build(self) -> Result<UserConfig, UserConfigError>
[src]
Tries to build the UserConfig
This returns an error if the name or token are invalid
If the anonymous name
OR token
is used without the other matching one this will return an error.
Trait Implementations
impl Debug for UserConfigBuilder
[src]
impl Default for UserConfigBuilder
[src]
fn default() -> UserConfigBuilder
[src]
impl<'de> Deserialize<'de> for UserConfigBuilder
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for UserConfigBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for UserConfigBuilder
impl Send for UserConfigBuilder
impl Sync for UserConfigBuilder
impl Unpin for UserConfigBuilder
impl UnwindSafe for UserConfigBuilder
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,