pub struct CommitPolicy { /* private fields */ }Expand description
Builder for a Policy::Commit governance aspect.
Implementations§
Source§impl CommitPolicy
impl CommitPolicy
Sourcepub fn idempotency_key(self, template: impl Into<String>) -> Self
pub fn idempotency_key(self, template: impl Into<String>) -> Self
Set the idempotency key template ({key} interpolated from State).
Sourcepub fn compensate_with(self, tool: impl Into<String>) -> Self
pub fn compensate_with(self, tool: impl Into<String>) -> Self
Set the compensating tool (undoes the commit on failure).
Trait Implementations§
Source§impl Clone for CommitPolicy
impl Clone for CommitPolicy
Source§fn clone(&self) -> CommitPolicy
fn clone(&self) -> CommitPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 CommitPolicy
impl Debug for CommitPolicy
Source§impl From<CommitPolicy> for Policy
impl From<CommitPolicy> for Policy
Source§fn from(c: CommitPolicy) -> Self
fn from(c: CommitPolicy) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommitPolicy
impl RefUnwindSafe for CommitPolicy
impl Send for CommitPolicy
impl Sync for CommitPolicy
impl Unpin for CommitPolicy
impl UnwindSafe for CommitPolicy
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