pub struct ActionRecord {
pub sister_type: SisterType,
pub action_type: String,
pub parameters: Metadata,
pub outcome: ActionOutcome,
pub evidence_ids: Vec<String>,
pub context_id: Option<ContextId>,
pub timestamp: DateTime<Utc>,
}Expand description
Action record to be receipted.
Fields§
§sister_type: SisterTypeWhat sister performed this.
action_type: StringWhat action was performed.
parameters: MetadataAction parameters (sanitized - no secrets).
outcome: ActionOutcomeOutcome.
evidence_ids: Vec<String>Evidence pointers.
context_id: Option<ContextId>Context ID where this happened.
timestamp: DateTime<Utc>Timestamp.
Implementations§
Source§impl ActionRecord
impl ActionRecord
Sourcepub fn new(
sister_type: SisterType,
action_type: impl Into<String>,
outcome: ActionOutcome,
) -> Self
pub fn new( sister_type: SisterType, action_type: impl Into<String>, outcome: ActionOutcome, ) -> Self
Create a new action record.
Sourcepub fn in_context(self, context_id: ContextId) -> Self
pub fn in_context(self, context_id: ContextId) -> Self
Set context.
Trait Implementations§
Source§impl Clone for ActionRecord
impl Clone for ActionRecord
Source§fn clone(&self) -> ActionRecord
fn clone(&self) -> ActionRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 ActionRecord
impl Debug for ActionRecord
Source§impl<'de> Deserialize<'de> for ActionRecord
impl<'de> Deserialize<'de> for ActionRecord
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 ActionRecord
impl RefUnwindSafe for ActionRecord
impl Send for ActionRecord
impl Sync for ActionRecord
impl Unpin for ActionRecord
impl UnsafeUnpin for ActionRecord
impl UnwindSafe for ActionRecord
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