pub struct AccessControlList {
pub rules: Vec<AccessControlRule>,
}Expand description
An access control list for a specific resource
Fields§
§rules: Vec<AccessControlRule>An ordered set of rules; the first matching rule defines the allowed access level. If we run out of rules, then the caller should proceed to evaluate the ACL for the parent resource, if any.
Implementations§
Source§impl AccessControlList
impl AccessControlList
pub async fn query_resource_access( resource: &mut impl Resource, info: &AuthInfo, privilege: &str, ) -> Result<ACLQueryDisposition>
pub async fn load_for_resource(resource: &str) -> Result<Option<Arc<Self>>>
Trait Implementations§
Source§impl Clone for AccessControlList
impl Clone for AccessControlList
Source§fn clone(&self) -> AccessControlList
fn clone(&self) -> AccessControlList
Returns a duplicate of the value. Read more
1.0.0 · 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 AccessControlList
impl Debug for AccessControlList
Source§impl<'de> Deserialize<'de> for AccessControlList
impl<'de> Deserialize<'de> for AccessControlList
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AccessControlList
impl RefUnwindSafe for AccessControlList
impl Send for AccessControlList
impl Sync for AccessControlList
impl Unpin for AccessControlList
impl UnwindSafe for AccessControlList
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more