pub struct DeploymentObject {
pub created_at: DateTime<Utc>,
pub deleted_at: Option<DateTime<Utc>>,
pub id: Uuid,
pub is_deletion_marker: bool,
pub sequence_id: i64,
pub stack_id: Uuid,
pub submitted_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub yaml_checksum: String,
pub yaml_content: String,
}Expand description
Represents a deployment object in the database.
JSON schema
{
"description": "Represents a deployment object in the database.",
"type": "object",
"required": [
"created_at",
"id",
"is_deletion_marker",
"sequence_id",
"stack_id",
"submitted_at",
"updated_at",
"yaml_checksum",
"yaml_content"
],
"properties": {
"created_at": {
"description": "Timestamp when the deployment object was created.",
"type": "string",
"format": "date-time"
},
"deleted_at": {
"description": "Timestamp for soft deletion, if applicable.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"id": {
"description": "Unique identifier for the deployment object.",
"type": "string",
"format": "uuid"
},
"is_deletion_marker": {
"description": "Indicates if this object marks a deletion.",
"type": "boolean"
},
"sequence_id": {
"description": "Auto-incrementing sequence number for ordering.",
"type": "integer",
"format": "int64"
},
"stack_id": {
"description": "ID of the stack this deployment object belongs to.",
"type": "string",
"format": "uuid"
},
"submitted_at": {
"description": "Timestamp when the deployment was submitted.",
"type": "string",
"format": "date-time"
},
"updated_at": {
"description": "Timestamp when the deployment object was last updated.",
"type": "string",
"format": "date-time"
},
"yaml_checksum": {
"description": "SHA-256 checksum of the YAML content.",
"type": "string"
},
"yaml_content": {
"description": "YAML content of the deployment.",
"type": "string"
}
}
}Fields§
§created_at: DateTime<Utc>Timestamp when the deployment object was created.
deleted_at: Option<DateTime<Utc>>Timestamp for soft deletion, if applicable.
id: UuidUnique identifier for the deployment object.
is_deletion_marker: boolIndicates if this object marks a deletion.
sequence_id: i64Auto-incrementing sequence number for ordering.
stack_id: UuidID of the stack this deployment object belongs to.
submitted_at: DateTime<Utc>Timestamp when the deployment was submitted.
updated_at: DateTime<Utc>Timestamp when the deployment object was last updated.
yaml_checksum: StringSHA-256 checksum of the YAML content.
yaml_content: StringYAML content of the deployment.
Implementations§
Source§impl DeploymentObject
impl DeploymentObject
pub fn builder() -> DeploymentObject
Trait Implementations§
Source§impl Clone for DeploymentObject
impl Clone for DeploymentObject
Source§fn clone(&self) -> DeploymentObject
fn clone(&self) -> DeploymentObject
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 DeploymentObject
impl Debug for DeploymentObject
Source§impl<'de> Deserialize<'de> for DeploymentObject
impl<'de> Deserialize<'de> for DeploymentObject
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 From<DeploymentObject> for DeploymentObject
impl From<DeploymentObject> for DeploymentObject
Source§fn from(value: DeploymentObject) -> Self
fn from(value: DeploymentObject) -> Self
Converts to this type from the input type.
Source§impl Serialize for DeploymentObject
impl Serialize for DeploymentObject
Source§impl TryFrom<DeploymentObject> for DeploymentObject
impl TryFrom<DeploymentObject> for DeploymentObject
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DeploymentObject) -> Result<Self, ConversionError>
fn try_from(value: DeploymentObject) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DeploymentObject
impl RefUnwindSafe for DeploymentObject
impl Send for DeploymentObject
impl Sync for DeploymentObject
impl Unpin for DeploymentObject
impl UnsafeUnpin for DeploymentObject
impl UnwindSafe for DeploymentObject
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