pub struct StoredDeployment {
pub name: String,
pub spec: DeploymentSpec,
pub status: DeploymentStatus,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A stored deployment with metadata.
Fields§
§name: StringDeployment name (unique identifier)
spec: DeploymentSpecThe deployment specification (complex nested structure, see spec docs)
status: DeploymentStatusCurrent deployment status
created_at: DateTime<Utc>When the deployment was created
updated_at: DateTime<Utc>When the deployment was last updated
Implementations§
Source§impl StoredDeployment
impl StoredDeployment
Sourcepub fn new(spec: DeploymentSpec) -> Self
pub fn new(spec: DeploymentSpec) -> Self
Create a new stored deployment from a spec.
Sourcepub fn update_spec(&mut self, spec: DeploymentSpec)
pub fn update_spec(&mut self, spec: DeploymentSpec)
Update the deployment spec and timestamp.
Sourcepub fn update_status(&mut self, status: DeploymentStatus)
pub fn update_status(&mut self, status: DeploymentStatus)
Update the deployment status and timestamp.
Trait Implementations§
Source§impl Clone for StoredDeployment
impl Clone for StoredDeployment
Source§fn clone(&self) -> StoredDeployment
fn clone(&self) -> StoredDeployment
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 StoredDeployment
impl ComposeSchema for StoredDeployment
Source§impl Debug for StoredDeployment
impl Debug for StoredDeployment
Source§impl<'de> Deserialize<'de> for StoredDeployment
impl<'de> Deserialize<'de> for StoredDeployment
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 StoredDeployment
impl Serialize for StoredDeployment
Auto Trait Implementations§
impl Freeze for StoredDeployment
impl RefUnwindSafe for StoredDeployment
impl Send for StoredDeployment
impl Sync for StoredDeployment
impl Unpin for StoredDeployment
impl UnsafeUnpin for StoredDeployment
impl UnwindSafe for StoredDeployment
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