Set the full policy for a collection (overwriting any previous policy).
(&mut self, collection: &str, policy: CollectionPolicy)
| 163 | |
| 164 | /// Set the full policy for a collection (overwriting any previous policy). |
| 165 | pub fn set(&mut self, collection: &str, policy: CollectionPolicy) { |
| 166 | self.policies.insert(collection.to_string(), policy); |
| 167 | } |
| 168 | |
| 169 | /// Remove the policy for a collection. Returns `true` if one existed. |
| 170 | pub fn remove(&mut self, collection: &str) -> bool { |