pub struct HarnessOptions {
pub harnesses: Vec<String>,
pub scope: Scope,
pub force: Vec<String>,
}Expand description
The options of install.
Fields§
§harnesses: Vec<String>The harness names, for example claude, or all.
scope: ScopeThe scope: project, user, or local.
force: Vec<String>The parts that --force names, which install writes whatever their state, or all
for every part that the configuration doesn’t decline. Empty without --force.
Implementations§
Source§impl HarnessOptions
impl HarnessOptions
Sourcepub fn new<I: IntoIterator<Item = S>, S: Into<String>>(
harnesses: I,
scope: Scope,
) -> Self
pub fn new<I: IntoIterator<Item = S>, S: Into<String>>( harnesses: I, scope: Scope, ) -> Self
new returns the options that install harnesses at scope, with the declined parts
in the configuration and without --force.
Sourcepub fn force<I: IntoIterator<Item = S>, S: Into<String>>(self, parts: I) -> Self
pub fn force<I: IntoIterator<Item = S>, S: Into<String>>(self, parts: I) -> Self
force writes parts whatever their state, or every part that the configuration
doesn’t decline when parts holds all.
Trait Implementations§
Source§impl Clone for HarnessOptions
impl Clone for HarnessOptions
Source§impl Debug for HarnessOptions
impl Debug for HarnessOptions
impl Eq for HarnessOptions
Source§impl PartialEq for HarnessOptions
impl PartialEq for HarnessOptions
impl StructuralPartialEq for HarnessOptions
Auto Trait Implementations§
impl Forget for HarnessOptions
impl Freeze for HarnessOptions
impl Move for HarnessOptions
impl RefUnwindSafe for HarnessOptions
impl Send for HarnessOptions
impl Sync for HarnessOptions
impl Unpin for HarnessOptions
impl UnsafeUnpin for HarnessOptions
impl UnwindSafe for HarnessOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.