MCPcopy Create free account
hub / github.com/Rustixir/darkbird / filter

Method filter

example/Version-4.0.0 ( Materialized View )/example.rs:79–86  ·  view source on GitHub ↗

Return None or Some(view_name)

(&self)

Source from the content-addressed store, hash-verified

77
78 // Return None or Some(view_name)
79 fn filter(&self) -> Option<String> {
80 match (&self.account_type, self.access_level) {
81
82 (AccountType::Admin, 1, ) => Some(format!("Super Admin")),
83 (AccountType::Admin, _, ) => Some(format!("Admin")),
84 (AccountType::Guest, _, ) => None,
85 }
86 }
87}
88
89

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected