Struct node_maintainer::NodeMaintainerOptions
source · pub struct NodeMaintainerOptions { /* private fields */ }Implementations§
source§impl NodeMaintainerOptions
impl NodeMaintainerOptions
pub fn new() -> Self
pub fn progress_bar(self, progress_bar: bool) -> Self
pub fn cache(self, cache: impl AsRef<Path>) -> Self
pub fn parallelism(self, parallelism: usize) -> Self
pub fn kdl_lock( self, kdl_lock: impl IntoKdl ) -> Result<Self, NodeMaintainerError>
pub fn npm_lock( self, npm_lock: impl AsRef<str> ) -> Result<Self, NodeMaintainerError>
pub fn registry(self, registry: Url) -> Self
pub fn scope_registry(self, scope: impl AsRef<str>, registry: Url) -> Self
pub fn base_dir(self, path: impl AsRef<Path>) -> Self
pub fn default_tag(self, tag: impl AsRef<str>) -> Self
pub async fn resolve_manifest( self, root: CorgiManifest ) -> Result<NodeMaintainer, NodeMaintainerError>
pub async fn resolve_spec( self, root_spec: impl AsRef<str> ) -> Result<NodeMaintainer, NodeMaintainerError>
Trait Implementations§
source§impl Clone for NodeMaintainerOptions
impl Clone for NodeMaintainerOptions
source§fn clone(&self) -> NodeMaintainerOptions
fn clone(&self) -> NodeMaintainerOptions
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 more