pub enum ConfigProfile {
Local,
Development,
Test,
Staging,
Production,
Custom(String),
}Expand description
A primitive runtime or deployment profile name.
Variants§
Local
Local developer profile.
Development
Development profile.
Test
Test profile.
Staging
Staging profile.
Production
Production profile.
Custom(String)
Caller-defined profile name.
Trait Implementations§
Source§impl Clone for ConfigProfile
impl Clone for ConfigProfile
Source§fn clone(&self) -> ConfigProfile
fn clone(&self) -> ConfigProfile
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 ConfigProfile
impl Debug for ConfigProfile
Source§impl Display for ConfigProfile
impl Display for ConfigProfile
Source§impl FromStr for ConfigProfile
impl FromStr for ConfigProfile
Source§type Err = ConfigProfileError
type Err = ConfigProfileError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<ConfigProfile, <ConfigProfile as FromStr>::Err>
fn from_str( input: &str, ) -> Result<ConfigProfile, <ConfigProfile as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ConfigProfile
impl Hash for ConfigProfile
Source§impl Ord for ConfigProfile
impl Ord for ConfigProfile
Source§fn cmp(&self, other: &ConfigProfile) -> Ordering
fn cmp(&self, other: &ConfigProfile) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConfigProfile
impl PartialEq for ConfigProfile
Source§fn eq(&self, other: &ConfigProfile) -> bool
fn eq(&self, other: &ConfigProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ConfigProfile
impl PartialOrd for ConfigProfile
impl Eq for ConfigProfile
impl StructuralPartialEq for ConfigProfile
Auto Trait Implementations§
impl Freeze for ConfigProfile
impl RefUnwindSafe for ConfigProfile
impl Send for ConfigProfile
impl Sync for ConfigProfile
impl Unpin for ConfigProfile
impl UnsafeUnpin for ConfigProfile
impl UnwindSafe for ConfigProfile
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