pub struct CommitBatch {
pub command_version: u32,
pub tenant: TenantId,
pub transaction_id: String,
pub commit_key: Uuid,
pub start_index: u64,
pub isolation: IsolationMode,
pub preconditions: Vec<Precondition>,
pub mutations: Vec<Mutation>,
}Expand description
Deterministic mutation set applied atomically by the replicated state machine. Contains allocated IDs and encoded values; apply never reads a clock, RNG, network or parser (plan documents 05/07).
Fields§
§command_version: u32Command format version used to interpret the batch.
tenant: TenantIdTenant whose keyspace the batch mutates.
transaction_id: StringClient-visible transaction identifier.
commit_key: UuidCaller-chosen idempotency key; replays discover the stored outcome.
start_index: u64Commit index the batch is expected to be applied at.
isolation: IsolationModeIsolation level under which the batch was planned.
preconditions: Vec<Precondition>Conditions that must hold before any mutation is applied.
mutations: Vec<Mutation>Ordered mutations applied atomically.
Trait Implementations§
Source§impl Clone for CommitBatch
impl Clone for CommitBatch
Source§impl Debug for CommitBatch
impl Debug for CommitBatch
Source§impl<'de> Deserialize<'de> for CommitBatch
impl<'de> Deserialize<'de> for CommitBatch
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 CommitBatch
impl PartialEq for CommitBatch
Source§impl Serialize for CommitBatch
impl Serialize for CommitBatch
impl StructuralPartialEq for CommitBatch
Auto Trait Implementations§
impl Freeze for CommitBatch
impl RefUnwindSafe for CommitBatch
impl Send for CommitBatch
impl Sync for CommitBatch
impl Unpin for CommitBatch
impl UnsafeUnpin for CommitBatch
impl UnwindSafe for CommitBatch
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