pub struct GlobalOptions {
pub package_repo: Vec<String>,
pub install_dir: Option<PathBuf>,
pub https_proxy: Option<String>,
pub no_proxy: Option<String>,
pub non_interactive: bool,
pub trust_insecure_packages: bool,
pub config_file: Option<PathBuf>,
pub no_config_file: bool,
pub temp_dir: Option<PathBuf>,
pub auth_file: Option<PathBuf>,
}Expand description
Global ISPM options
Fields§
§package_repo: Vec<String>A package repo to use when installing packages
install_dir: Option<PathBuf>A directory to install packages into, overriding global configurations
https_proxy: Option<String>An HTTPS proxy URL to use
no_proxy: Option<String>A no-proxy string of addresses not to use the proxy for, e.g. “*.intel.com,127.0.0.1”
non_interactive: boolWhether this command should be run in non-interactive mode.
trust_insecure_packages: boolWhether insecure packages should be trusted. This should be set to true when installing an un-signed local package
config_file: Option<PathBuf>A path to an override configuration file
no_config_file: boolWhether the configuration file should not be used for this command
temp_dir: Option<PathBuf>A different temporary directory to use
auth_file: Option<PathBuf>An authentication file to use for this command
Implementations§
Source§impl GlobalOptions
impl GlobalOptions
Sourcepub fn builder() -> GlobalOptionsBuilder<((), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> GlobalOptionsBuilder<((), (), (), (), (), (), (), (), (), ())>
Create a builder for building GlobalOptions.
On the builder, call .package_repo(...)(optional), .install_dir(...)(optional), .https_proxy(...)(optional), .no_proxy(...)(optional), .non_interactive(...)(optional), .trust_insecure_packages(...)(optional), .config_file(...)(optional), .no_config_file(...)(optional), .temp_dir(...)(optional), .auth_file(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of GlobalOptions.
Trait Implementations§
Source§impl Clone for GlobalOptions
impl Clone for GlobalOptions
Source§fn clone(&self) -> GlobalOptions
fn clone(&self) -> GlobalOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GlobalOptions
impl Debug for GlobalOptions
Source§impl Default for GlobalOptions
impl Default for GlobalOptions
Auto Trait Implementations§
impl Freeze for GlobalOptions
impl RefUnwindSafe for GlobalOptions
impl Send for GlobalOptions
impl Sync for GlobalOptions
impl Unpin for GlobalOptions
impl UnwindSafe for GlobalOptions
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<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>
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>
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