pub enum NadeoCredentials {
DedicatedServer {
u: String,
p: String,
},
Ubisoft {
e: String,
p: String,
},
}Expand description
Credentials for nadeo services – create via ::dedicated_server or ::ubisoft
Variants§
Implementations§
Source§impl NadeoCredentials
impl NadeoCredentials
pub fn get_basic_auth_header(&self) -> String
pub fn is_ubi(&self) -> bool
pub fn is_dedi(&self) -> bool
pub async fn run_login( &self, client: &Client, ) -> Result<NadeoTokens, LoginError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NadeoCredentials
impl RefUnwindSafe for NadeoCredentials
impl Send for NadeoCredentials
impl Sync for NadeoCredentials
impl Unpin for NadeoCredentials
impl UnwindSafe for NadeoCredentials
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