pub struct AuthenticatedTokenProvider {
pub username: String,
pub password: String,
/* private fields */
}Expand description
Token provider for an existing Robocraft account.
Steam accounts are not supported.
Fields§
§username: StringThe account’s username
password: StringThe account’s password
Implementations§
Source§impl AuthenticatedTokenProvider
impl AuthenticatedTokenProvider
pub fn with_email(email: &str, password: &str) -> Result<Self, Error>
pub fn with_username(username: &str, password: &str) -> Result<Self, Error>
pub fn get_account_info(&self) -> Result<AccountInfo, Error>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AuthenticatedTokenProvider
impl !UnwindSafe for AuthenticatedTokenProvider
impl Freeze for AuthenticatedTokenProvider
impl Send for AuthenticatedTokenProvider
impl Sync for AuthenticatedTokenProvider
impl Unpin for AuthenticatedTokenProvider
impl UnsafeUnpin for AuthenticatedTokenProvider
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