Struct amazon_sp_api_shared::auth::AuthState
source · [−]pub struct AuthState { /* private fields */ }
Implementations
sourceimpl AuthState
impl AuthState
pub fn grantless(
client_id: String,
client_secret: String,
scope: AuthScope
) -> Self
pub fn oauth_code(client_id: String, client_secret: String, code: String) -> Self
pub fn oauth_refresh_token(
client_id: String,
client_secret: String,
refresh_token: String
) -> Self
pub fn reset_access_token(&self)
pub async fn get_access_token(
&self,
client: &Client
) -> Result<String, SharedError>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AuthState
impl Send for AuthState
impl Sync for AuthState
impl Unpin for AuthState
impl !UnwindSafe for AuthState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more