Struct screeps_api::endpoints::login::LoggedIn
[−]
[src]
#[must_use = "LoggedIn does not do anything unless registered in a token store"]pub struct LoggedIn { pub token: String, // some fields omitted }
The result of a call to log in.
Fields
token: String
The token which can be used to make future authenticated API calls.
Methods
impl LoggedIn
[src]
fn return_to<T>(self, storage: &T) where
T: TokenStorage,
[src]
T: TokenStorage,
Stores the token into the given token storage.
Trait Implementations
impl Clone for LoggedIn
[src]
fn clone(&self) -> LoggedIn
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for LoggedIn
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more