pub struct Operation {
pub id: OperationId,
pub base_revision: u64,
pub resulting_revision: u64,
pub actor: ActorId,
pub timestamp: DateTime<Utc>,
pub command: Command,
}Expand description
Audit envelope for one successfully applied command.
Fields§
§id: OperationIdUnique identity of this operation.
base_revision: u64Revision the caller observed before applying the command.
resulting_revision: u64Next wrapping revision committed by the command.
actor: ActorIdPrincipal making the change.
timestamp: DateTime<Utc>Caller-supplied UTC operation time.
command: CommandSemantic change whose result is stored.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
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 Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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