Advertisement
Guest User

Untitled

a guest
Jul 12th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. pub type PrivacyPolicy<E> =
  2. Vec<Box<dyn PrivacyRule<ViewerContext = Self::ViewerContext, Id = Self::Id, Err = E>>>;
  3.  
  4. pub trait PrivacyRule {
  5. type ViewerContext;
  6. type Id;
  7. fn can_see(&self, viewer: &Self::ViewerContext, id: &Self::Id) -> ();
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement