#[non_exhaustive]pub enum CohortActivity {
Any,
All,
None,
AtLeast {
count: usize,
},
AtMost {
count: usize,
},
Exactly {
count: usize,
},
}Expand description
Cohort activity rule.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Any
Any active source makes the cohort active.
All
All declared sources must be active.
None
No declared source may be active.
AtLeast
At least count sources must be active.
AtMost
At most count sources may be active.
Exactly
Exactly count sources must be active.
Implementations§
Trait Implementations§
Source§impl Clone for CohortActivity
impl Clone for CohortActivity
Source§impl Debug for CohortActivity
impl Debug for CohortActivity
impl Eq for CohortActivity
Source§impl PartialEq for CohortActivity
impl PartialEq for CohortActivity
impl StructuralPartialEq for CohortActivity
Auto Trait Implementations§
impl Freeze for CohortActivity
impl RefUnwindSafe for CohortActivity
impl Send for CohortActivity
impl Sync for CohortActivity
impl Unpin for CohortActivity
impl UnsafeUnpin for CohortActivity
impl UnwindSafe for CohortActivity
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