Enum apisdk::AccessToken
source · pub enum AccessToken {
Fixed(String),
Dynamic(Arc<dyn TokenGenerator>),
}
Expand description
This enum holds access_token
, which used to sign request
Variants§
Fixed(String)
Immutable token
Dynamic(Arc<dyn TokenGenerator>)
Dynamic token, which will be retrieved from provider
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AccessToken
impl !RefUnwindSafe for AccessToken
impl Send for AccessToken
impl Sync for AccessToken
impl Unpin for AccessToken
impl !UnwindSafe for AccessToken
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