Struct node_maintainer::NassunOpts
source · pub struct NassunOpts { /* private fields */ }Expand description
Build a new Nassun instance with specified options.
Implementations§
source§impl NassunOpts
impl NassunOpts
pub fn new() -> NassunOpts
sourcepub fn cache(self, cache: impl AsRef<Path>) -> NassunOpts
pub fn cache(self, cache: impl AsRef<Path>) -> NassunOpts
Cache directory to use for requests.
pub fn registry(self, registry: Url) -> NassunOpts
sourcepub fn scope_registry(self, scope: impl AsRef<str>, registry: Url) -> NassunOpts
pub fn scope_registry(self, scope: impl AsRef<str>, registry: Url) -> NassunOpts
Adds a registry to use for a specific scope.
sourcepub fn base_dir(self, base_dir: impl AsRef<Path>) -> NassunOpts
pub fn base_dir(self, base_dir: impl AsRef<Path>) -> NassunOpts
Base directory to use for resolving relative paths. Defaults to ".".
sourcepub fn default_tag(self, default_tag: impl AsRef<str>) -> NassunOpts
pub fn default_tag(self, default_tag: impl AsRef<str>) -> NassunOpts
Default tag to use when resolving package versions. Defaults to latest.
Trait Implementations§
source§impl Clone for NassunOpts
impl Clone for NassunOpts
source§fn clone(&self) -> NassunOpts
fn clone(&self) -> NassunOpts
Returns a copy 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 NassunOpts
impl Debug for NassunOpts
source§impl Default for NassunOpts
impl Default for NassunOpts
source§fn default() -> NassunOpts
fn default() -> NassunOpts
Returns the “default value” for a type. Read more
source§impl PartialEq<NassunOpts> for NassunOpts
impl PartialEq<NassunOpts> for NassunOpts
source§fn eq(&self, other: &NassunOpts) -> bool
fn eq(&self, other: &NassunOpts) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for NassunOpts
impl StructuralEq for NassunOpts
impl StructuralPartialEq for NassunOpts
Auto Trait Implementations§
impl RefUnwindSafe for NassunOpts
impl Send for NassunOpts
impl Sync for NassunOpts
impl Unpin for NassunOpts
impl UnwindSafe for NassunOpts
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.