Struct ispm_wrapper::ispm::GlobalOptions
source · 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: bool
Whether this command should be run in non-interactive mode.
trust_insecure_packages: bool
Whether 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: bool
Whether 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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