MCPcopy Create free account
hub / github.com/FeatureProbe/server-sdk-rust / contains

Method contains

src/evaluate.rs:571–578  ·  view source on GitHub ↗
(&self, user: &FPUser)

Source from the content-addressed store, hash-verified

569
570impl Segment {
571 pub fn contains(&self, user: &FPUser) -> bool {
572 for rule in &self.rules {
573 if rule.allow(user) {
574 return true;
575 }
576 }
577 false
578 }
579}
580
581#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]

Callers 2

match_stringMethod · 0.80
user_in_segmentsMethod · 0.80

Calls 1

allowMethod · 0.80

Tested by

no test coverage detected