pub struct ChainOptions {
pub skip: bool,
pub skip_fn: Option<Arc<dyn Fn() -> bool + Send + Sync>>,
pub value_fn: Option<Arc<dyn Fn() -> ConditionValue + Send + Sync>>,
pub or_values_fn: Option<Arc<dyn Fn() -> Vec<ConditionValue> + Send + Sync>>,
}Expand description
Options to control skip/value functions.
Fields§
§skip: bool§skip_fn: Option<Arc<dyn Fn() -> bool + Send + Sync>>§value_fn: Option<Arc<dyn Fn() -> ConditionValue + Send + Sync>>§or_values_fn: Option<Arc<dyn Fn() -> Vec<ConditionValue> + Send + Sync>>Implementations§
Source§impl ChainOptions
impl ChainOptions
pub fn skip(self, skip: bool) -> Self
pub fn skip_fn(self, f: impl Fn() -> bool + Send + Sync + 'static) -> Self
pub fn value_fn( self, f: impl Fn() -> ConditionValue + Send + Sync + 'static, ) -> Self
pub fn or_values_fn( self, f: impl Fn() -> Vec<ConditionValue> + Send + Sync + 'static, ) -> Self
Trait Implementations§
Source§impl Clone for ChainOptions
impl Clone for ChainOptions
Source§fn clone(&self) -> ChainOptions
fn clone(&self) -> ChainOptions
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 ChainOptions
impl Debug for ChainOptions
Source§impl Default for ChainOptions
impl Default for ChainOptions
Source§fn default() -> ChainOptions
fn default() -> ChainOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChainOptions
impl !RefUnwindSafe for ChainOptions
impl Send for ChainOptions
impl Sync for ChainOptions
impl Unpin for ChainOptions
impl !UnwindSafe for ChainOptions
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