pub struct Property {
pub key: String,
pub value: Value,
pub operator: String,
pub property_type: Option<String>,
}Expand description
A property filter used in feature flag targeting.
Supports various operators for matching user properties against expected values.
Fields§
§key: StringThe property key to match (e.g., “email”, “country”, “$feature/other-flag”)
value: ValueThe value to compare against
operator: StringComparison operator. Supported property operators include "exact",
"is_not", "icontains", "not_icontains", "regex",
"not_regex", "gt", "gte", "lt", "lte", "is_set",
"is_not_set", "is_date_before", "is_date_after", and the
"semver_*" operators used by PostHog version targeting.
property_type: Option<String>Property type. Use Some("cohort") for cohort membership checks; flag
dependency checks use a property key that starts with $feature/.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Property
impl<'de> Deserialize<'de> for Property
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 Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnsafeUnpin for Property
impl UnwindSafe for Property
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