pub struct ResolverConfig {
pub registry: RegistryConfig,
pub no_cache: bool,
pub allow_unsigned: bool,
pub bundled_packs_dir: Option<String>,
}Expand description
Pack resolver configuration.
Fields§
§registry: RegistryConfigRegistry configuration.
no_cache: boolSkip cache lookup.
allow_unsigned: boolAllow unsigned packs.
bundled_packs_dir: Option<String>Directory containing bundled packs.
Implementations§
Source§impl ResolverConfig
impl ResolverConfig
Sourcepub fn allow_unsigned(self) -> Self
pub fn allow_unsigned(self) -> Self
Allow unsigned packs.
Sourcepub fn with_bundled_dir(self, dir: impl Into<String>) -> Self
pub fn with_bundled_dir(self, dir: impl Into<String>) -> Self
Set bundled packs directory.
Trait Implementations§
Source§impl Clone for ResolverConfig
impl Clone for ResolverConfig
Source§fn clone(&self) -> ResolverConfig
fn clone(&self) -> ResolverConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolverConfig
impl Debug for ResolverConfig
Auto Trait Implementations§
impl Freeze for ResolverConfig
impl RefUnwindSafe for ResolverConfig
impl Send for ResolverConfig
impl Sync for ResolverConfig
impl Unpin for ResolverConfig
impl UnsafeUnpin for ResolverConfig
impl UnwindSafe for ResolverConfig
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