pub struct CachedToken {
pub access_token: SecretString,
pub refresh_token: SecretString,
pub token_type: String,
pub device_token: String,
pub expires_at: Option<i64>,
}Expand description
Represents a set of cached OAuth credentials for a Robinhood session.
Fields§
§access_token: SecretStringThe OAuth access token used to authorize API requests.
refresh_token: SecretStringThe OAuth refresh token used to obtain a new access token.
token_type: StringThe token type prefix for the Authorization header (typically "Bearer").
device_token: StringThe device token identifying this client to the Robinhood API.
expires_at: Option<i64>The Unix timestamp (seconds) at which the access token expires, if known.
Trait Implementations§
Source§impl Clone for CachedToken
impl Clone for CachedToken
Source§fn clone(&self) -> CachedToken
fn clone(&self) -> CachedToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CachedToken
impl RefUnwindSafe for CachedToken
impl Send for CachedToken
impl Sync for CachedToken
impl Unpin for CachedToken
impl UnsafeUnpin for CachedToken
impl UnwindSafe for CachedToken
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