pub struct RecoveryReceipt {
pub idempotency_key: CommandId,
pub identity: RecoveryCommandIdentity,
pub state: RecoveryReceiptState,
pub reservation_id: CommandId,
pub decision: SkillDecision,
pub command_outcome: CommandOutcome,
pub skill_outcome: SkillOutcome,
pub tactic_evidence: Vec<Evidence>,
pub outcome_sha256: String,
pub recorded_at: DateTime<Utc>,
}Fields§
§idempotency_key: CommandId§identity: RecoveryCommandIdentity§state: RecoveryReceiptState§reservation_id: CommandId§decision: SkillDecision§command_outcome: CommandOutcome§skill_outcome: SkillOutcome§tactic_evidence: Vec<Evidence>§outcome_sha256: String§recorded_at: DateTime<Utc>Implementations§
Source§impl RecoveryReceipt
impl RecoveryReceipt
pub fn new( idempotency_key: CommandId, identity: RecoveryCommandIdentity, state: RecoveryReceiptState, reservation_id: CommandId, decision: SkillDecision, command_outcome: CommandOutcome, skill_outcome: SkillOutcome, tactic_evidence: Vec<Evidence>, recorded_at: DateTime<Utc>, ) -> Result<Self, String>
pub fn validate(&self) -> Result<(), String>
pub fn outcome_digest( command_outcome: &CommandOutcome, skill_outcome: &SkillOutcome, tactic_evidence: &[Evidence], ) -> Result<String, String>
Trait Implementations§
Source§impl Clone for RecoveryReceipt
impl Clone for RecoveryReceipt
Source§impl Debug for RecoveryReceipt
impl Debug for RecoveryReceipt
Source§impl<'de> Deserialize<'de> for RecoveryReceipt
impl<'de> Deserialize<'de> for RecoveryReceipt
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 PartialEq for RecoveryReceipt
impl PartialEq for RecoveryReceipt
Source§impl Serialize for RecoveryReceipt
impl Serialize for RecoveryReceipt
impl StructuralPartialEq for RecoveryReceipt
Auto Trait Implementations§
impl Freeze for RecoveryReceipt
impl RefUnwindSafe for RecoveryReceipt
impl Send for RecoveryReceipt
impl Sync for RecoveryReceipt
impl Unpin for RecoveryReceipt
impl UnsafeUnpin for RecoveryReceipt
impl UnwindSafe for RecoveryReceipt
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