pub struct Options {
pub local_storage_key: Option<String>,
}Expand description
Per-operation options for the file system abstraction, primarily used to override the key under which data is stored in browser local storage.
Fields§
§local_storage_key: Option<String>Explicit local storage key to use instead of deriving one from the file name.
Implementations§
Source§impl Options
impl Options
Sourcepub fn with_local_storage_key(key: &str) -> Self
pub fn with_local_storage_key(key: &str) -> Self
Creates Options that store data under the given explicit local storage key.
Sourcepub fn local_storage_key(&self, filename: &Path) -> String
pub fn local_storage_key(&self, filename: &Path) -> String
Resolves the local storage key for the given file, using the explicit key if set, otherwise falling back to the file’s name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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