pub enum RepeatPolicy {
Always,
OncePerRun,
OncePerTurn,
OncePerAttemptAndSpan,
}Expand description
Enumerates the finite repeat policy cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Always
Use this variant when the contract needs to represent always; selecting it has no side effect by itself.
OncePerRun
Use this variant when the contract needs to represent once per run; selecting it has no side effect by itself.
OncePerTurn
Use this variant when the contract needs to represent once per turn; selecting it has no side effect by itself.
OncePerAttemptAndSpan
Use this variant when the contract needs to represent once per attempt and span; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for RepeatPolicy
impl Clone for RepeatPolicy
Source§fn clone(&self) -> RepeatPolicy
fn clone(&self) -> RepeatPolicy
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 RepeatPolicy
impl Debug for RepeatPolicy
Source§impl<'de> Deserialize<'de> for RepeatPolicy
impl<'de> Deserialize<'de> for RepeatPolicy
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 RepeatPolicy
impl PartialEq for RepeatPolicy
Source§fn eq(&self, other: &RepeatPolicy) -> bool
fn eq(&self, other: &RepeatPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RepeatPolicy
impl Serialize for RepeatPolicy
impl Eq for RepeatPolicy
impl StructuralPartialEq for RepeatPolicy
Auto Trait Implementations§
impl Freeze for RepeatPolicy
impl RefUnwindSafe for RepeatPolicy
impl Send for RepeatPolicy
impl Sync for RepeatPolicy
impl Unpin for RepeatPolicy
impl UnsafeUnpin for RepeatPolicy
impl UnwindSafe for RepeatPolicy
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