pub struct OperationFacts {
pub id: OperationId,
pub actor: ActorId,
pub timestamp: DateTime<Utc>,
pub work: Option<WorkItemId>,
pub workspace: WorkspaceId,
pub lineage: LineageId,
}Expand description
What a committed operation records about itself, as the project store returned it.
Fields§
§id: OperationIdThe operation’s identity.
actor: ActorIdThe principal that made it.
timestamp: DateTime<Utc>When it committed.
work: Option<WorkItemId>The single task it acts on, if its command acts on one.
workspace: WorkspaceIdThe workspace it changed.
lineage: LineageIdThe lineage of the store that committed it.
Implementations§
Source§impl OperationFacts
impl OperationFacts
Sourcepub fn of(
operation: &Operation,
workspace: WorkspaceId,
lineage: LineageId,
) -> Self
pub fn of( operation: &Operation, workspace: WorkspaceId, lineage: LineageId, ) -> Self
Read the facts from a recorded operation.
Trait Implementations§
Source§impl Clone for OperationFacts
impl Clone for OperationFacts
Source§impl Debug for OperationFacts
impl Debug for OperationFacts
impl Eq for OperationFacts
Source§impl PartialEq for OperationFacts
impl PartialEq for OperationFacts
impl StructuralPartialEq for OperationFacts
Auto Trait Implementations§
impl Freeze for OperationFacts
impl RefUnwindSafe for OperationFacts
impl Send for OperationFacts
impl Sync for OperationFacts
impl Unpin for OperationFacts
impl UnsafeUnpin for OperationFacts
impl UnwindSafe for OperationFacts
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