Struct twitch_irc::login::CredentialsPair
source · pub struct CredentialsPair {
pub login: String,
pub token: Option<String>,
}
Expand description
A pair of login name and OAuth token.
Fields§
§login: String
Login name of the user that the library should log into chat as.
token: Option<String>
OAuth access token, without leading oauth:
prefix.
If None
, then no password will be sent to the server at all (for anonymous
credentials).
Trait Implementations§
source§impl Clone for CredentialsPair
impl Clone for CredentialsPair
source§fn clone(&self) -> CredentialsPair
fn clone(&self) -> CredentialsPair
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CredentialsPair
impl Debug for CredentialsPair
source§impl<'de> Deserialize<'de> for CredentialsPair
impl<'de> Deserialize<'de> for CredentialsPair
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CredentialsPair
impl Send for CredentialsPair
impl Sync for CredentialsPair
impl Unpin for CredentialsPair
impl UnwindSafe for CredentialsPair
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more