pub struct LoadOptions {
pub url: String,
pub hash: Option<String>,
pub cache: Option<Arc<dyn MapCache>>,
pub cache_key: Option<String>,
}Expand description
Options for MapLoader::load_blocking / MapLoader::load.
Fields§
§url: StringURL to fetch the map from.
hash: Option<String>Optional sha256 hex digest to verify the fetched map against.
Accepts sha256:<hex> or bare <hex>. If omitted, no verification.
cache: Option<Arc<dyn MapCache>>Pluggable cache. Defaults to a process-wide in-memory cache.
cache_key: Option<String>Cache key. Defaults to {url}#{hash}.
Trait Implementations§
Source§impl Clone for LoadOptions
impl Clone for LoadOptions
Source§fn clone(&self) -> LoadOptions
fn clone(&self) -> LoadOptions
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 moreSource§impl Default for LoadOptions
impl Default for LoadOptions
Source§fn default() -> LoadOptions
fn default() -> LoadOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoadOptions
impl !RefUnwindSafe for LoadOptions
impl Send for LoadOptions
impl Sync for LoadOptions
impl Unpin for LoadOptions
impl UnsafeUnpin for LoadOptions
impl !UnwindSafe for LoadOptions
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