pub struct AuthorizationChecker<'a> { /* private fields */ }
Implementations§
source§impl<'a> AuthorizationChecker<'a>
impl<'a> AuthorizationChecker<'a>
pub fn new(link_info: &'a Option<AgentMeshLinkInfo>) -> Self
pub fn get_relationships( &mut self, direction: AgentMeshRelationshipDirection, ) -> &[AgentMeshRelationshipAndPermissionsForLink]
pub fn get_permissions( &mut self, direction: AgentMeshRelationshipDirection, ) -> Vec<MeshPermission>
pub fn has_relationship( &mut self, direction: AgentMeshRelationshipDirection, relationship: &str, ) -> bool
pub fn has_relationships( &mut self, direction: AgentMeshRelationshipDirection, relationships_search: &[MeshRelationship], ) -> bool
pub fn has_relationships_any( &mut self, direction: AgentMeshRelationshipDirection, relationships_search: &[MeshRelationship], ) -> bool
pub fn has_relationships_any_either_direction( &mut self, relationships_search: &[MeshRelationship], ) -> bool
pub fn has_permission( &mut self, direction: AgentMeshRelationshipDirection, permission: &str, ) -> bool
pub fn has_permissions( &mut self, direction: AgentMeshRelationshipDirection, permissions: &[MeshPermission], ) -> bool
pub fn get_session_or_direct_relationship( &self, agent_ids: &[MeshId], ) -> Option<&AgentMeshRelationshipAndPermissions>
pub fn get_session_or_direct_lemid( &self, agent_ids: &[MeshId], ) -> Option<LinkedEntityKeychainMeshId>
pub fn get_session_relationship( &self, agent_ids: &[MeshId], ) -> Option<&AgentMeshRelationshipAndPermissions>
pub fn get_session_lemid( &self, agent_ids: &[MeshId], ) -> Option<LinkedEntityKeychainMeshId>
pub fn is_authenticated_session(&self) -> bool
pub fn is_authenticated_with_session_for_agent( &self, agent_ids: &[MeshId], ) -> bool
Auto Trait Implementations§
impl<'a> Freeze for AuthorizationChecker<'a>
impl<'a> RefUnwindSafe for AuthorizationChecker<'a>
impl<'a> Send for AuthorizationChecker<'a>
impl<'a> Sync for AuthorizationChecker<'a>
impl<'a> Unpin for AuthorizationChecker<'a>
impl<'a> UnwindSafe for AuthorizationChecker<'a>
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