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

source

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

source§

fn clone(&self) -> GlobalOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GlobalOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for GlobalOptions

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl ToArgs for GlobalOptions

source§

fn to_args(&self) -> Vec<String>

Convert this implementor into a list of command-line arguments

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more