pub struct FleetReceipt {
pub run_id: FleetRunId,
pub task_id: String,
pub worker_id: String,
pub attempt: Option<u32>,
pub terminal_seq: Option<u64>,
pub completed_at: String,
pub result: FleetTaskResult,
pub failure_kind: Option<FleetTaskFailureKind>,
pub artifacts: Vec<FleetArtifactRef>,
pub score: Option<FleetScore>,
pub resolved_route: Option<FleetResolvedRoute>,
pub effective_permissions: Option<FleetEffectivePermissions>,
}Expand description
Receipt produced when a task completes verification.
Fields§
§run_id: FleetRunId§task_id: String§worker_id: String§attempt: Option<u32>Durable lease generation that produced this receipt.
Optional for backward compatibility with receipts written before Fleet attempts were fenced explicitly.
terminal_seq: Option<u64>Sequence of the terminal worker event finalized with this receipt.
Optional so older ledger records remain replayable.
completed_at: String§result: FleetTaskResult§failure_kind: Option<FleetTaskFailureKind>§artifacts: Vec<FleetArtifactRef>§score: Option<FleetScore>§resolved_route: Option<FleetResolvedRoute>Resolved-route snapshot for this task (#3154).
#[serde(default)] keeps older ledgers (written before this field
existed) deserializable.
effective_permissions: Option<FleetEffectivePermissions>Effective worker authority for this task (#3211).
Trait Implementations§
Source§impl Clone for FleetReceipt
impl Clone for FleetReceipt
Source§fn clone(&self) -> FleetReceipt
fn clone(&self) -> FleetReceipt
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 FleetReceipt
impl Debug for FleetReceipt
Source§impl<'de> Deserialize<'de> for FleetReceipt
impl<'de> Deserialize<'de> for FleetReceipt
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
Auto Trait Implementations§
impl Freeze for FleetReceipt
impl RefUnwindSafe for FleetReceipt
impl Send for FleetReceipt
impl Sync for FleetReceipt
impl Unpin for FleetReceipt
impl UnsafeUnpin for FleetReceipt
impl UnwindSafe for FleetReceipt
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