pub struct ProfileSelection {
pub name: ProfileName,
}Expand description
User-facing profile selection (one CLI invocation picks at
most one profile). The resolver expands this into a full
ResolvedProfile against a definition table.
Fields§
§name: ProfileNameImplementations§
Source§impl ProfileSelection
impl ProfileSelection
Sourcepub fn default_dev() -> Self
pub fn default_dev() -> Self
Default selection when neither --profile nor --release
is supplied — the dev built-in.
Sourcepub fn release_alias() -> Self
pub fn release_alias() -> Self
Selection produced by the legacy --release flag, kept as
a compatibility alias for --profile release.
Sourcepub fn from_name(name: ProfileName) -> Self
pub fn from_name(name: ProfileName) -> Self
Selection from a user-supplied --profile <name> argument.
Trait Implementations§
Source§impl Clone for ProfileSelection
impl Clone for ProfileSelection
Source§fn clone(&self) -> ProfileSelection
fn clone(&self) -> ProfileSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProfileSelection
impl Debug for ProfileSelection
Source§impl PartialEq for ProfileSelection
impl PartialEq for ProfileSelection
Source§fn eq(&self, other: &ProfileSelection) -> bool
fn eq(&self, other: &ProfileSelection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ProfileSelection
impl StructuralPartialEq for ProfileSelection
Auto Trait Implementations§
impl Freeze for ProfileSelection
impl RefUnwindSafe for ProfileSelection
impl Send for ProfileSelection
impl Sync for ProfileSelection
impl Unpin for ProfileSelection
impl UnsafeUnpin for ProfileSelection
impl UnwindSafe for ProfileSelection
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§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
Compare self to
key and return true if they are equal.