pub enum EnvVersion {
Release,
Preview,
Developer,
}Expand description
Build-time environment version baked into app.json.
Wire-compatible with lingxia_update::ReleaseType — both serialize as
lowercase "developer" | "preview" | "release". Defined locally here
(rather than imported) to keep lingxia-app-context free of additional
crate dependencies; the JSON contract is what callers rely on.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for EnvVersion
impl Clone for EnvVersion
Source§fn clone(&self) -> EnvVersion
fn clone(&self) -> EnvVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EnvVersion
impl Debug for EnvVersion
Source§impl Default for EnvVersion
impl Default for EnvVersion
Source§fn default() -> EnvVersion
fn default() -> EnvVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnvVersion
impl<'de> Deserialize<'de> for EnvVersion
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 EnvVersion
impl Display for EnvVersion
Source§impl Hash for EnvVersion
impl Hash for EnvVersion
Source§impl PartialEq for EnvVersion
impl PartialEq for EnvVersion
Source§fn eq(&self, other: &EnvVersion) -> bool
fn eq(&self, other: &EnvVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EnvVersion
impl Serialize for EnvVersion
impl Copy for EnvVersion
impl Eq for EnvVersion
impl StructuralPartialEq for EnvVersion
Auto Trait Implementations§
impl Freeze for EnvVersion
impl RefUnwindSafe for EnvVersion
impl Send for EnvVersion
impl Sync for EnvVersion
impl Unpin for EnvVersion
impl UnsafeUnpin for EnvVersion
impl UnwindSafe for EnvVersion
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