pub enum Environment {
Dev,
Production,
}Variants§
Implementations§
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<'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 From<Environment> for JsValue
impl From<Environment> for JsValue
Source§fn from(value: Environment) -> JsValue
fn from(value: Environment) -> JsValue
Converts to this type from the input type.
Source§impl FromStr for Environment
impl FromStr for Environment
Source§impl FromWasmAbi for Environment
impl FromWasmAbi for Environment
Source§impl IntoWasmAbi for Environment
impl IntoWasmAbi for Environment
Source§impl OptionFromWasmAbi for Environment
impl OptionFromWasmAbi for Environment
Source§fn is_none(val: &<Environment as FromWasmAbi>::Abi) -> bool
fn is_none(val: &<Environment as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.Source§impl OptionIntoWasmAbi for Environment
impl OptionIntoWasmAbi for Environment
Source§fn none() -> <Environment as IntoWasmAbi>::Abi
fn none() -> <Environment as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read moreSource§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 TryFromJsValue for Environment
impl TryFromJsValue for Environment
Source§fn try_from_js_value_ref(value: &JsValue) -> Option<Environment>
fn try_from_js_value_ref(value: &JsValue) -> Option<Environment>
Performs the conversion.
Source§impl ValueEnum for Environment
impl ValueEnum for Environment
Source§fn value_variants<'a>() -> &'a [Environment]
fn value_variants<'a>() -> &'a [Environment]
All possible argument values, in display order.
Source§fn to_possible_value<'a>(&self) -> Option<PossibleValue>
fn to_possible_value<'a>(&self) -> Option<PossibleValue>
The canonical argument value. Read more
Source§impl VectorFromWasmAbi for Environment
impl VectorFromWasmAbi for Environment
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <Environment as VectorFromWasmAbi>::Abi, ) -> Box<[Environment]>
Source§impl VectorIntoWasmAbi for Environment
impl VectorIntoWasmAbi for Environment
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[Environment]>, ) -> <Environment as VectorIntoWasmAbi>::Abi
impl Copy 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.