Struct launchdarkly_server_sdk::Segment
source · pub struct Segment {
pub key: String,
pub included: Vec<String, Global>,
pub excluded: Vec<String, Global>,
pub unbounded: bool,
pub version: u64,
/* private fields */
}
Expand description
Segment describes a group of contexts based on keys and/or matching rules.
Fields§
§key: String
The unique key of the segment.
included: Vec<String, Global>
A list of context keys that are always matched by this segment.
excluded: Vec<String, Global>
A list of context keys that are never matched by this segment, unless the key is also in included.
unbounded: bool
Unbounded is true if this is a segment whose included list is stored separately and is not limited in size. Currently, the server-side Rust SDK cannot access the context list for this kind of segment; it only works when flags are being evaluated within the LaunchDarkly service.
The name is historical: “unbounded segments” was an earlier name for the product feature that is currently known as “big segments”. If unbounded is true, this is a big segment.
version: u64
An integer that is incremented by LaunchDarkly every time the configuration of the segment is changed.