pub struct AuthorizationProfile { /* private fields */ }Implementations§
Source§impl AuthorizationProfile
impl AuthorizationProfile
pub fn new( owners: Vec<ProfileOwner>, viewers: Vec<ProfileViewer>, ) -> Result<AuthorizationProfile, String>
pub fn owners(&self) -> &[ProfileOwner]
pub fn viewers(&self) -> &[ProfileViewer]
pub fn resolve( &self, principal: RequestPrincipal, ) -> Result<Authorizations, String>
Trait Implementations§
Source§impl Clone for AuthorizationProfile
impl Clone for AuthorizationProfile
Source§fn clone(&self) -> AuthorizationProfile
fn clone(&self) -> AuthorizationProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthorizationProfile
impl Debug for AuthorizationProfile
impl Eq for AuthorizationProfile
Source§impl PartialEq for AuthorizationProfile
impl PartialEq for AuthorizationProfile
impl StructuralPartialEq for AuthorizationProfile
Auto Trait Implementations§
impl Freeze for AuthorizationProfile
impl RefUnwindSafe for AuthorizationProfile
impl Send for AuthorizationProfile
impl Sync for AuthorizationProfile
impl Unpin for AuthorizationProfile
impl UnsafeUnpin for AuthorizationProfile
impl UnwindSafe for AuthorizationProfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more