pub struct TokenCacheConfig {
pub enabled: bool,
pub cache_file_path: PathBuf,
pub encryption_key: Vec<u8>,
}Expand description
Configuration for the token cache
Fields§
§enabled: bool§cache_file_path: PathBuf§encryption_key: Vec<u8>Implementations§
Source§impl TokenCacheConfig
impl TokenCacheConfig
Sourcepub fn from_env() -> Result<Self, ConfigError>
pub fn from_env() -> Result<Self, ConfigError>
Create a new TokenCacheConfig from environment variables
Trait Implementations§
Source§impl Clone for TokenCacheConfig
impl Clone for TokenCacheConfig
Source§fn clone(&self) -> TokenCacheConfig
fn clone(&self) -> TokenCacheConfig
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 TokenCacheConfig
impl RefUnwindSafe for TokenCacheConfig
impl Send for TokenCacheConfig
impl Sync for TokenCacheConfig
impl Unpin for TokenCacheConfig
impl UnsafeUnpin for TokenCacheConfig
impl UnwindSafe for TokenCacheConfig
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