Enum shuttle_service::Environment
source · pub enum Environment {
Local,
Deployment,
}
Expand description
The environment this project is running in
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 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<'de> Deserialize<'de> for Environment
impl<'de> Deserialize<'de> for Environment
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Environment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Environment, <__D as Deserializer<'de>>::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 FromStr for Environment
impl FromStr for Environment
§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<Environment, <Environment as FromStr>::Err>
fn from_str(s: &str) -> Result<Environment, <Environment as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moresource§impl PartialEq for Environment
impl PartialEq for Environment
source§fn eq(&self, other: &Environment) -> bool
fn eq(&self, other: &Environment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Environment
impl Serialize for Environment
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<&str> for Environment
impl TryFrom<&str> for Environment
§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
source§fn try_from(
s: &str,
) -> Result<Environment, <Environment as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<Environment, <Environment as TryFrom<&str>>::Error>
Performs the conversion.
impl Copy for Environment
impl Eq 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