pub struct StoredVariable {
pub id: String,
pub name: String,
pub value: String,
pub scope: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A stored variable — a plaintext key-value pair for template substitution in deployment specs. Variables are NOT encrypted (unlike secrets). They live in their own storage, separate from the encrypted secrets store.
Variables can be global (scope = None) or project-scoped
(scope = Some(project_id)).
Fields§
§id: StringUUID identifier.
name: StringVariable name (e.g. "APP_VERSION", "LOG_LEVEL"). Unique within a
given scope.
value: StringPlaintext variable value.
scope: Option<String>Scope: project id or None for global.
created_at: DateTime<Utc>When the variable was created.
updated_at: DateTime<Utc>When the variable was last updated.
Implementations§
Trait Implementations§
Source§impl Clone for StoredVariable
impl Clone for StoredVariable
Source§fn clone(&self) -> StoredVariable
fn clone(&self) -> StoredVariable
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 ComposeSchema for StoredVariable
impl ComposeSchema for StoredVariable
Source§impl Debug for StoredVariable
impl Debug for StoredVariable
Source§impl<'de> Deserialize<'de> for StoredVariable
impl<'de> Deserialize<'de> for StoredVariable
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 StoredVariable
impl Serialize for StoredVariable
Auto Trait Implementations§
impl Freeze for StoredVariable
impl RefUnwindSafe for StoredVariable
impl Send for StoredVariable
impl Sync for StoredVariable
impl Unpin for StoredVariable
impl UnsafeUnpin for StoredVariable
impl UnwindSafe for StoredVariable
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