pub struct StoredEnvironment {
pub id: String,
pub name: String,
pub project_id: Option<String>,
pub description: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A deployment/runtime environment (e.g. “dev”, “staging”, “prod”).
Each environment is an isolated namespace for secrets and, later,
deployments. Optionally belongs to a Project (added in Phase 5) — when
project_id is None, the environment is global.
Fields§
§id: StringUUID identifier.
name: StringDisplay name (e.g. “dev”). Unique within a given project_id.
project_id: Option<String>Project id this environment belongs to. None = global.
description: Option<String>Free-form description shown in the UI.
created_at: DateTime<Utc>When the environment was created.
updated_at: DateTime<Utc>When the environment was last updated.
Implementations§
Trait Implementations§
Source§impl Clone for StoredEnvironment
impl Clone for StoredEnvironment
Source§fn clone(&self) -> StoredEnvironment
fn clone(&self) -> StoredEnvironment
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 ComposeSchema for StoredEnvironment
impl ComposeSchema for StoredEnvironment
Source§impl Debug for StoredEnvironment
impl Debug for StoredEnvironment
Source§impl<'de> Deserialize<'de> for StoredEnvironment
impl<'de> Deserialize<'de> for StoredEnvironment
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 Serialize for StoredEnvironment
impl Serialize for StoredEnvironment
Auto Trait Implementations§
impl Freeze for StoredEnvironment
impl RefUnwindSafe for StoredEnvironment
impl Send for StoredEnvironment
impl Sync for StoredEnvironment
impl Unpin for StoredEnvironment
impl UnsafeUnpin for StoredEnvironment
impl UnwindSafe for StoredEnvironment
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