pub struct Options {Show 15 fields
pub to_update: Vec<(String, Option<Version>, Cow<'static, str>)>,
pub all: bool,
pub update: bool,
pub install: bool,
pub force: bool,
pub downdate: bool,
pub update_git: bool,
pub quiet: bool,
pub locked: bool,
pub filter: Vec<PackageFilterElement>,
pub cargo_dir: (PathBuf, PathBuf),
pub temp_dir: PathBuf,
pub cargo_install_args: Vec<OsString>,
pub install_cargo: Option<OsString>,
pub jobs: Option<OsString>,
}Expand description
Representation of the application’s all configurable values.
Fields§
§to_update: Vec<(String, Option<Version>, Cow<'static, str>)>(Additional) packages to update. Default: []
all: boolWhether to update all packages. Default: false
update: boolWhether to update packages or just list them. Default: true
install: boolWhether to allow for just installing packages. Default: false
force: boolUpdate all packages. Default: false
downdate: boolDowndate packages to match newest unyanked registry version.
update_git: boolUpdate git packages too (it’s expensive). Default: false
quiet: boolDon’t output messages and pass –quiet to cargo subprocesses. Default: false
locked: boolEnforce packages’ embedded Cargo.lock. Exactly like CARGO_INSTALL_OPTS=--locked (or --enforce-lock per package)
except doesn’t disable cargo-binstall. Default: false
filter: Vec<PackageFilterElement>Update all packages. Default: empty
cargo_dir: (PathBuf, PathBuf)The cargo home directory; (original, canonicalised). Default: "$CARGO_INSTALL_ROOT", then "$CARGO_HOME",
then "$HOME/.cargo"
temp_dir: PathBufThe temporary directory to clone git repositories to. Default: "$TEMP/cargo-update"
cargo_install_args: Vec<OsString>Arbitrary arguments to forward to cargo install, acquired from $CARGO_INSTALL_OPTS. Default: []
install_cargo: Option<OsString>The cargo to run for installations. Default: None (use “cargo”)
jobs: Option<OsString>Limit of concurrent jobs. Default: None
Implementations§
Trait Implementations§
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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
key and return true if they are equal.