pub struct WorkOrderLog {
pub claimed_at: Option<DateTime<Utc>>,
pub claimed_by: Option<Uuid>,
pub completed_at: DateTime<Utc>,
pub created_at: DateTime<Utc>,
pub id: Uuid,
pub result_message: Option<String>,
pub retries_attempted: i32,
pub success: bool,
pub work_type: String,
pub yaml_content: String,
}Expand description
Represents a completed work order in the audit log.
JSON schema
{
"description": "Represents a completed work order in the audit log.",
"examples": [
{
"claimed_at": "2023-01-01T00:01:00Z",
"claimed_by": "123e4567-e89b-12d3-a456-426614174001",
"completed_at": "2023-01-01T00:05:00Z",
"created_at": "2023-01-01T00:00:00Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"result_message": "sha256:abc123...",
"retries_attempted": 0,
"success": true,
"work_type": "build",
"yaml_content": "apiVersion: shipwright.io/v1beta1\nkind: Build\n..."
}
],
"type": "object",
"required": [
"completed_at",
"created_at",
"id",
"retries_attempted",
"success",
"work_type",
"yaml_content"
],
"properties": {
"claimed_at": {
"description": "Timestamp when the work order was claimed.",
"examples": [
"2023-01-01T00:01:00Z"
],
"type": [
"string",
"null"
],
"format": "date-time"
},
"claimed_by": {
"description": "ID of the agent that executed this work order.",
"examples": [
"123e4567-e89b-12d3-a456-426614174001"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"completed_at": {
"description": "Timestamp when the work order completed.",
"examples": [
"2023-01-01T00:05:00Z"
],
"type": "string",
"format": "date-time"
},
"created_at": {
"description": "Timestamp when the work order was created.",
"examples": [
"2023-01-01T00:00:00Z"
],
"type": "string",
"format": "date-time"
},
"id": {
"description": "Original work order ID.",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": "string",
"format": "uuid"
},
"result_message": {
"description": "Result message (image digest on success, error details on failure).",
"examples": [
"sha256:abc123..."
],
"type": [
"string",
"null"
]
},
"retries_attempted": {
"description": "Number of retry attempts before completion.",
"examples": [
0
],
"type": "integer",
"format": "int32"
},
"success": {
"description": "Whether the work completed successfully.",
"examples": [
true
],
"type": "boolean"
},
"work_type": {
"description": "Type of work.",
"examples": [
"build"
],
"type": "string"
},
"yaml_content": {
"description": "Original YAML content for debugging/reconstruction.",
"examples": [
"apiVersion: shipwright.io/v1beta1\nkind: Build\n..."
],
"type": "string"
}
}
}Fields§
§claimed_at: Option<DateTime<Utc>>Timestamp when the work order was claimed.
claimed_by: Option<Uuid>ID of the agent that executed this work order.
completed_at: DateTime<Utc>Timestamp when the work order completed.
created_at: DateTime<Utc>Timestamp when the work order was created.
id: UuidOriginal work order ID.
result_message: Option<String>Result message (image digest on success, error details on failure).
retries_attempted: i32Number of retry attempts before completion.
success: boolWhether the work completed successfully.
work_type: StringType of work.
yaml_content: StringOriginal YAML content for debugging/reconstruction.
Implementations§
Source§impl WorkOrderLog
impl WorkOrderLog
pub fn builder() -> WorkOrderLog
Trait Implementations§
Source§impl Clone for WorkOrderLog
impl Clone for WorkOrderLog
Source§fn clone(&self) -> WorkOrderLog
fn clone(&self) -> WorkOrderLog
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 WorkOrderLog
impl Debug for WorkOrderLog
Source§impl<'de> Deserialize<'de> for WorkOrderLog
impl<'de> Deserialize<'de> for WorkOrderLog
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<WorkOrderLog> for WorkOrderLog
impl From<WorkOrderLog> for WorkOrderLog
Source§fn from(value: WorkOrderLog) -> Self
fn from(value: WorkOrderLog) -> Self
Converts to this type from the input type.
Source§impl Serialize for WorkOrderLog
impl Serialize for WorkOrderLog
Source§impl TryFrom<WorkOrderLog> for WorkOrderLog
impl TryFrom<WorkOrderLog> for WorkOrderLog
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: WorkOrderLog) -> Result<Self, ConversionError>
fn try_from(value: WorkOrderLog) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for WorkOrderLog
impl RefUnwindSafe for WorkOrderLog
impl Send for WorkOrderLog
impl Sync for WorkOrderLog
impl Unpin for WorkOrderLog
impl UnsafeUnpin for WorkOrderLog
impl UnwindSafe for WorkOrderLog
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