pub struct OpEntry {
pub id: u64,
pub timestamp: DateTime<Utc>,
pub operation: OpRecord,
pub undone: bool,
pub batch_id: u64,
pub batch_index: u32,
pub scope: Option<String>,
pub actor: Arc<Principal>,
pub operation_id: Option<OperationId>,
}Expand description
Entry in the operation log.
Fields§
§id: u64Sequential ID.
timestamp: DateTime<Utc>Timestamp.
operation: OpRecordThe operation.
undone: boolWhether this operation has been undone.
batch_id: u64Batch identifier (same for grouped operations).
batch_index: u32Index within the batch.
scope: Option<String>Checkout/lane scope that recorded this operation.
actor: Arc<Principal>Principal that performed this operation. Required; every callsite
that records an OpEntry must supply a real actor (typically the
repository’s configured principal).
operation_id: Option<OperationId>Client-supplied operation id, when available. The dedup store uses
this to make repeated calls with the same id idempotent. None
when the caller didn’t supply one (no dedup applied).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpEntry
impl<'de> Deserialize<'de> for OpEntry
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 OpEntry
impl RefUnwindSafe for OpEntry
impl Send for OpEntry
impl Sync for OpEntry
impl Unpin for OpEntry
impl UnsafeUnpin for OpEntry
impl UnwindSafe for OpEntry
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