pub fn username(&self) -> &str {
        let (nick, _) = crate::ANONYMOUS_LOGIN;
        match self {
            Self::Anonymous { .. } => nick,
            Self::Basic { name, .. } | Self::Full { name, .. } => &*name,
        }
    }
/// Get your username from this identity
///
/// If its anonymous, it'll be `justinfan1234`
Get your username from this identity
If its anonymous, it'll be `justinfan1234`
Get your username from this identity If its anonymous it ' ll be ` justinfan1234 `
pub fn username(&self) -> &str {
        let (nick, _) = crate::ANONYMOUS_LOGIN;
        match self {
            Self::Anonymous { .. } => nick,
            Self::Basic { name, .. } | Self::Full { name, .. } => &*name,
        }
    }
pub fn username ( & self ) -> & str { let ( nick , _ ) = crate :: ANONYMOUS_LOGIN ; match self { Self :: Anonymous { .. } => nick , Self :: Basic { name , .. } | Self :: Full { name , .. } => & * name , } }
Get your username from this identity
If its anonymous, it'll be `justinfan1234`
Get your username from this identity If its anonymous it ' ll be ` justinfan1234 `
&self
&self