pub struct StackTemplate {
pub checksum: String,
pub created_at: DateTime<Utc>,
pub deleted_at: Option<DateTime<Utc>>,
pub description: Option<String>,
pub generator_id: Option<Uuid>,
pub id: Uuid,
pub name: String,
pub parameters_schema: String,
pub template_content: String,
pub updated_at: DateTime<Utc>,
pub version: i32,
}Expand description
Represents a stack template in the database.
JSON schema
{
"description": "Represents a stack template in the database.",
"type": "object",
"required": [
"checksum",
"created_at",
"id",
"name",
"parameters_schema",
"template_content",
"updated_at",
"version"
],
"properties": {
"checksum": {
"description": "SHA-256 checksum of template_content.",
"type": "string"
},
"created_at": {
"description": "Timestamp when the template was created.",
"type": "string",
"format": "date-time"
},
"deleted_at": {
"description": "Timestamp for soft deletion, if applicable.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"description": {
"description": "Optional description of the template.",
"type": [
"string",
"null"
]
},
"generator_id": {
"description": "Generator ID - NULL for system templates (admin-only).",
"type": [
"string",
"null"
],
"format": "uuid"
},
"id": {
"description": "Unique identifier for the template.",
"type": "string",
"format": "uuid"
},
"name": {
"description": "Name of the template.",
"type": "string"
},
"parameters_schema": {
"description": "JSON Schema for parameter validation.",
"type": "string"
},
"template_content": {
"description": "Tera template content.",
"type": "string"
},
"updated_at": {
"description": "Timestamp when the template was last updated.",
"type": "string",
"format": "date-time"
},
"version": {
"description": "Version number (auto-incremented per name+generator_id).",
"type": "integer",
"format": "int32"
}
}
}Fields§
§checksum: StringSHA-256 checksum of template_content.
created_at: DateTime<Utc>Timestamp when the template was created.
deleted_at: Option<DateTime<Utc>>Timestamp for soft deletion, if applicable.
description: Option<String>Optional description of the template.
generator_id: Option<Uuid>Generator ID - NULL for system templates (admin-only).
id: UuidUnique identifier for the template.
name: StringName of the template.
parameters_schema: StringJSON Schema for parameter validation.
template_content: StringTera template content.
updated_at: DateTime<Utc>Timestamp when the template was last updated.
version: i32Version number (auto-incremented per name+generator_id).
Implementations§
Source§impl StackTemplate
impl StackTemplate
pub fn builder() -> StackTemplate
Trait Implementations§
Source§impl Clone for StackTemplate
impl Clone for StackTemplate
Source§fn clone(&self) -> StackTemplate
fn clone(&self) -> StackTemplate
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 StackTemplate
impl Debug for StackTemplate
Source§impl<'de> Deserialize<'de> for StackTemplate
impl<'de> Deserialize<'de> for StackTemplate
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<StackTemplate> for StackTemplate
impl From<StackTemplate> for StackTemplate
Source§fn from(value: StackTemplate) -> Self
fn from(value: StackTemplate) -> Self
Converts to this type from the input type.
Source§impl Serialize for StackTemplate
impl Serialize for StackTemplate
Source§impl TryFrom<StackTemplate> for StackTemplate
impl TryFrom<StackTemplate> for StackTemplate
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: StackTemplate) -> Result<Self, ConversionError>
fn try_from(value: StackTemplate) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StackTemplate
impl RefUnwindSafe for StackTemplate
impl Send for StackTemplate
impl Sync for StackTemplate
impl Unpin for StackTemplate
impl UnsafeUnpin for StackTemplate
impl UnwindSafe for StackTemplate
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