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§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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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