Enum OnFinished
pub enum OnFinished {
Allow,
AllowIfFailed,
Refuse,
UseExisting,
}Expand description
What a start does when the workflow ID’s last run finished within retention.
Variants§
Allow
Start a new run.
AllowIfFailed
Start a new run only if the last one did not succeed.
Refuse
Fail with Error::AlreadyExists.
UseExisting
Return the finished run (its result).
Trait Implementations§
§impl Clone for OnFinished
impl Clone for OnFinished
§fn clone(&self) -> OnFinished
fn clone(&self) -> OnFinished
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 more§impl Debug for OnFinished
impl Debug for OnFinished
§impl Default for OnFinished
impl Default for OnFinished
§fn default() -> OnFinished
fn default() -> OnFinished
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for OnFinished
impl<'de> Deserialize<'de> for OnFinished
§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
§impl PartialEq for OnFinished
impl PartialEq for OnFinished
§impl Serialize for OnFinished
impl Serialize for OnFinished
impl Copy for OnFinished
impl Eq for OnFinished
impl StructuralPartialEq for OnFinished
Auto Trait Implementations§
impl Freeze for OnFinished
impl RefUnwindSafe for OnFinished
impl Send for OnFinished
impl Sync for OnFinished
impl Unpin for OnFinished
impl UnsafeUnpin for OnFinished
impl UnwindSafe for OnFinished
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