Struct ispm_wrapper::ispm::projects::CreateOptions
source · pub struct CreateOptions {
packages: HashSet<ProjectPackage>,
ignore_existing_files: bool,
global: GlobalOptions,
}
Expand description
Options that can be set when creating a project
Fields§
§packages: HashSet<ProjectPackage>
§ignore_existing_files: bool
§global: GlobalOptions
Implementations§
source§impl CreateOptions
impl CreateOptions
sourcepub fn builder() -> CreateOptionsBuilder<((), (), ())>
pub fn builder() -> CreateOptionsBuilder<((), (), ())>
Create a builder for building CreateOptions
.
On the builder, call .packages(...)
(optional), .ignore_existing_files(...)
(optional), .global(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CreateOptions
.
Trait Implementations§
source§impl Clone for CreateOptions
impl Clone for CreateOptions
source§fn clone(&self) -> CreateOptions
fn clone(&self) -> CreateOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CreateOptions
impl Debug for CreateOptions
Auto Trait Implementations§
impl Freeze for CreateOptions
impl RefUnwindSafe for CreateOptions
impl Send for CreateOptions
impl Sync for CreateOptions
impl Unpin for CreateOptions
impl UnwindSafe for CreateOptions
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
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>
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 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>
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