pub enum Environment {
Development,
Staging,
Test,
Production,
}
Variants§
Development
Development environment (alias: dev).
Staging
Staging environment (alias: stag).
Test
Testing environment (alias: test).
Production
Production environment (alias: prod).
Implementations§
Source§impl Environment
impl Environment
pub fn get_dotenv_filename(&self) -> String
pub fn get_dotenv_secrets_filename(&self) -> String
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
Returns a duplicate 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 Default for Environment
impl Default for Environment
Source§fn default() -> Environment
fn default() -> Environment
Returns the “default value” for a type. Read more
Source§impl Display for Environment
impl Display for Environment
Source§impl FromStr for Environment
impl FromStr for Environment
Source§impl IntoEnumIterator for Environment
impl IntoEnumIterator for Environment
type Iterator = EnvironmentIter
fn iter() -> EnvironmentIter ⓘ
Source§impl PartialEq for Environment
impl PartialEq for Environment
Source§impl TryFrom<&str> for Environment
impl TryFrom<&str> for Environment
Source§impl ValueEnum for Environment
impl ValueEnum for Environment
impl StructuralPartialEq for Environment
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
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