pub enum AppEnv {
Dev,
Prod,
}Expand description
Host-app deployment environment baked into app.json.
This is the build-time axis (dev | prod): which server, package-id
suffix, publish token, and self-update endpoint the host uses. It is
not the lxapp publish channel (release | draft).
Defined locally here (rather than imported) to keep lingxia-app-context
free of additional crate dependencies; the JSON contract is what callers
rely on.
Missing env is AppEnv::Prod.
Variants§
Implementations§
Trait Implementations§
impl Copy for AppEnv
Source§impl<'de> Deserialize<'de> for AppEnv
impl<'de> Deserialize<'de> for AppEnv
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
impl Eq for AppEnv
impl StructuralPartialEq for AppEnv
Auto Trait Implementations§
impl Freeze for AppEnv
impl RefUnwindSafe for AppEnv
impl Send for AppEnv
impl Sync for AppEnv
impl Unpin for AppEnv
impl UnsafeUnpin for AppEnv
impl UnwindSafe for AppEnv
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