pub struct TransactionGroup {
pub id: u32,
pub transactional: bool,
pub steps: Vec<RawStep>,
}Expand description
A run of consecutive RawSteps that share a transactional / non-transactional
classification. Group ids are 1-indexed in emission order.
Fields§
§id: u321-indexed group id (assigned by group_steps).
transactional: boolTrue if every step in the group can run inside a single
BEGIN; ... COMMIT;. Non-transactional groups (CONCURRENTLY, etc.)
run as autocommit singletons even when the group has multiple steps.
steps: Vec<RawStep>The steps in the group, in emission order.
Trait Implementations§
Source§impl Clone for TransactionGroup
impl Clone for TransactionGroup
Source§fn clone(&self) -> TransactionGroup
fn clone(&self) -> TransactionGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TransactionGroup
impl Debug for TransactionGroup
impl Eq for TransactionGroup
Source§impl PartialEq for TransactionGroup
impl PartialEq for TransactionGroup
Source§fn eq(&self, other: &TransactionGroup) -> bool
fn eq(&self, other: &TransactionGroup) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransactionGroup
Auto Trait Implementations§
impl Freeze for TransactionGroup
impl RefUnwindSafe for TransactionGroup
impl Send for TransactionGroup
impl Sync for TransactionGroup
impl Unpin for TransactionGroup
impl UnsafeUnpin for TransactionGroup
impl UnwindSafe for TransactionGroup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more