Enum tomlenv::Environment
source · pub enum Environment {
Prod,
Stage,
Test,
Dev,
Local,
}
Expand description
A fairly standard environment hierarchy for use with Environments
.
Prod -> Stage -> Test -> Dev -> Local
Variants
Prod
Production
Stage
Stage
Test
Test
Dev
Development
Local
Local
Trait Implementations
sourceimpl Clone for Environment
impl Clone for Environment
sourcefn clone(&self) -> Environment
fn clone(&self) -> Environment
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Environment
impl Debug for Environment
sourceimpl<'de> Deserialize<'de> for Environment
impl<'de> Deserialize<'de> for Environment
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for Environment
impl Display for Environment
sourceimpl Hash for Environment
impl Hash for Environment
sourceimpl Ord for Environment
impl Ord for Environment
sourcefn cmp(&self, other: &Environment) -> Ordering
fn cmp(&self, other: &Environment) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Environment> for Environment
impl PartialEq<Environment> for Environment
sourcefn eq(&self, other: &Environment) -> bool
fn eq(&self, other: &Environment) -> bool
sourceimpl PartialOrd<Environment> for Environment
impl PartialOrd<Environment> for Environment
sourcefn partial_cmp(&self, other: &Environment) -> Option<Ordering>
fn partial_cmp(&self, other: &Environment) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for Environment
impl Serialize for Environment
sourceimpl<'a> TryFrom<&'a str> for Environment
impl<'a> TryFrom<&'a str> for Environment
sourceimpl TryFrom<String> for Environment
impl TryFrom<String> for Environment
impl Copy for Environment
impl Eq for Environment
impl StructuralEq for Environment
impl StructuralPartialEq for Environment
Auto Trait Implementations
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more