pub enum InstallMode {
AddNewPackage {
packages: Vec<String>,
},
AddWithAlias {
alias: String,
actr_type: ActrType,
fingerprint: Option<String>,
},
InstallFromConfig {
force_update: bool,
},
}Expand description
Installation mode
Variants§
AddNewPackage
Mode 1: Add new dependency (npm install
- Pull remote proto to protos/ folder
- Modify Actr.toml (add dependency)
- Update Actr.lock.toml
AddWithAlias
Mode 1b: Add dependency with explicit alias and actr_type (actr install
- Discover service by actr_type
- Use first argument as alias
- Modify Actr.toml (add dependency with alias)
- Update Actr.lock.toml
InstallFromConfig
Mode 2: Install dependencies in config (npm install)
- Do NOT modify Actr.toml
- Use lock file versions if available
- Only update Actr.lock.toml
Trait Implementations§
Source§impl Clone for InstallMode
impl Clone for InstallMode
Source§fn clone(&self) -> InstallMode
fn clone(&self) -> InstallMode
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 moreAuto Trait Implementations§
impl Freeze for InstallMode
impl RefUnwindSafe for InstallMode
impl Send for InstallMode
impl Sync for InstallMode
impl Unpin for InstallMode
impl UnwindSafe for InstallMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more