(&self, user: &FPUser)
| 569 | |
| 570 | impl 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)] |
no test coverage detected