pub struct MultiStrategyConfig {
pub on_fail_continue: bool,
pub allow_recursive: bool,
pub execution_interval: u64,
pub strategies: Vec<Strategy>,
}Expand description
Configuration options for the MultiStrategy chain.
If fail_on_continue is set, the MultiStrategy sequence behaves as logical AND chain,
otherwise it behaves like a logical OR chain.
Fields§
§on_fail_continue: boolDetermines if the strategy should continue executing the next strategy if the current one failed.
If set to true, the strategy behaves like a logical AND chain of SingularStrategies
Otherwise, it behaves like a logical OR chain of SingularStrategies.
Default is true.
allow_recursive: boolIndicate whether the MultiStrategy can contain another MultiStrategy.
Default is true.
execution_interval: u64Execution interval of the configured strategies in seconds.
Default is 60, minimum is 1.
strategies: Vec<Strategy>Configuration of individual sub-strategies.
Default is empty, which makes the MultiStrategy behave as passive.
Trait Implementations§
Source§impl Clone for MultiStrategyConfig
impl Clone for MultiStrategyConfig
Source§fn clone(&self) -> MultiStrategyConfig
fn clone(&self) -> MultiStrategyConfig
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 MultiStrategyConfig
impl Debug for MultiStrategyConfig
Source§impl Default for MultiStrategyConfig
impl Default for MultiStrategyConfig
Source§impl<'de> Deserialize<'de> for MultiStrategyConfig
impl<'de> Deserialize<'de> for MultiStrategyConfig
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 MultiStrategyConfig
impl PartialEq for MultiStrategyConfig
Source§impl Serialize for MultiStrategyConfig
impl Serialize for MultiStrategyConfig
Source§impl Validate for MultiStrategyConfig
impl Validate for MultiStrategyConfig
Source§impl<'v_a> ValidateArgs<'v_a> for MultiStrategyConfig
impl<'v_a> ValidateArgs<'v_a> for MultiStrategyConfig
impl StructuralPartialEq for MultiStrategyConfig
Auto Trait Implementations§
impl Freeze for MultiStrategyConfig
impl RefUnwindSafe for MultiStrategyConfig
impl Send for MultiStrategyConfig
impl Sync for MultiStrategyConfig
impl Unpin for MultiStrategyConfig
impl UnwindSafe for MultiStrategyConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§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