Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pub type PrivacyPolicy<E> =
- Vec<Box<dyn PrivacyRule<ViewerContext = Self::ViewerContext, Id = Self::Id, Err = E>>>;
- pub trait PrivacyRule {
- type ViewerContext;
- type Id;
- fn can_see(&self, viewer: &Self::ViewerContext, id: &Self::Id) -> ();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement