pub struct ActionCommit { /* private fields */ }Expand description
The result of committing a TransactionAction.
This struct contains the updates to apply to the table’s metadata and any preconditions that must be satisfied before the update can be committed.
Implementations§
Source§impl ActionCommit
impl ActionCommit
Sourcepub fn new(
updates: Vec<TableUpdate>,
requirements: Vec<TableRequirement>,
) -> Self
pub fn new( updates: Vec<TableUpdate>, requirements: Vec<TableRequirement>, ) -> Self
Creates a new ActionCommit from the given updates and requirements.
Sourcepub fn take_updates(&mut self) -> Vec<TableUpdate>
pub fn take_updates(&mut self) -> Vec<TableUpdate>
Consumes and returns the list of table updates.
Sourcepub fn take_requirements(&mut self) -> Vec<TableRequirement>
pub fn take_requirements(&mut self) -> Vec<TableRequirement>
Consumes and returns the list of table requirements.
Auto Trait Implementations§
impl Freeze for ActionCommit
impl RefUnwindSafe for ActionCommit
impl Send for ActionCommit
impl Sync for ActionCommit
impl Unpin for ActionCommit
impl UnwindSafe for ActionCommit
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
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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