pub struct Cohort {
pub id: String,
pub name: String,
pub properties: Value,
}Expand description
A cohort definition for local evaluation.
Cohorts are groups of users defined by property filters, used for targeting feature flags to specific user segments.
Fields§
§id: StringUnique identifier for this cohort
name: StringHuman-readable name of the cohort
properties: ValueProperty filters that define cohort membership
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cohort
impl<'de> Deserialize<'de> for Cohort
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
Auto Trait Implementations§
impl Freeze for Cohort
impl RefUnwindSafe for Cohort
impl Send for Cohort
impl Sync for Cohort
impl Unpin for Cohort
impl UnwindSafe for Cohort
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