pub struct StorageConfig {
pub path: PathBuf,
pub dev_shadow: Option<PathBuf>,
pub env_key_var: Option<String>,
}Expand description
Where the persisted license state lives, plus an optional env var that overrides the key at startup (handy in dev/CI).
A project-local dev file shadows the per-user app-data file when present.
Fields§
§path: PathBufApp-data file used by an installed app
(e.g. ~/Library/Application Support/MyApp/license.env).
dev_shadow: Option<PathBuf>A project-local file that, when present, shadows path — the dev
convention (e.g. .myapp_license.env in a checkout). None to disable.
env_key_var: Option<String>Optional env var whose value overrides the stored key (e.g. MYAPP_LICENSE_KEY).
Implementations§
Trait Implementations§
Source§impl Clone for StorageConfig
impl Clone for StorageConfig
Auto Trait Implementations§
impl Forget for StorageConfig
impl Freeze for StorageConfig
impl RefUnwindSafe for StorageConfig
impl Send for StorageConfig
impl Sync for StorageConfig
impl Unpin for StorageConfig
impl UnsafeUnpin for StorageConfig
impl UnwindSafe for StorageConfig
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