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

Method allow

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

Source from the content-addressed store, hash-verified

381
382impl SegmentRule {
383 pub fn allow(&self, user: &FPUser) -> bool {
384 for c in &self.conditions {
385 if c.meet(user, None) {
386 return true;
387 }
388 }
389 false
390 }
391}
392
393#[derive(Serialize, Deserialize, Debug)]

Callers 1

containsMethod · 0.80

Calls 1

meetMethod · 0.80

Tested by

no test coverage detected