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§
Trait Implementations§
source§impl Clone for Environment
impl Clone for Environment
source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
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 Environment
impl Debug for Environment
source§impl<'de> Deserialize<'de> for Environment
impl<'de> Deserialize<'de> for Environment
source§fn 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
source§impl Display for Environment
impl Display for Environment
source§impl Hash for Environment
impl Hash for Environment
source§impl Ord for Environment
impl Ord for Environment
source§fn cmp(&self, other: &Environment) -> Ordering
fn cmp(&self, other: &Environment) -> Ordering
1.21.0 · 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<Environment> for Environment
impl PartialEq<Environment> for Environment
source§fn eq(&self, other: &Environment) -> bool
fn eq(&self, other: &Environment) -> bool
source§impl PartialOrd<Environment> for Environment
impl PartialOrd<Environment> for Environment
source§fn partial_cmp(&self, other: &Environment) -> Option<Ordering>
fn partial_cmp(&self, other: &Environment) -> Option<Ordering>
1.0.0 · source§fn 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 more