pub struct Options {
pub subdir: Option<String>,
pub extract: bool,
}
Expand description
Options to use with Cache::cached_path_with_options
.
Fields§
§subdir: Option<String>
An optional subdirectory (relative to the cache root) to cache the resource in.
extract: bool
Automatically extract the resource, assuming the resource is an archive.
Implementations§
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 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