Struct eva_common::acl::Acl
source · pub struct Acl { /* private fields */ }Expand description
The default ACL, used by most of services. Can be overriden with a custom one
Implementations§
source§impl Acl
impl Acl
pub fn id(&self) -> &str
pub fn get_items_allow_deny_reading(&self) -> (Vec<String>, Vec<String>)
pub fn check_admin(&self) -> bool
pub fn check_op(&self, op: Op) -> bool
pub fn check_item_read(&self, oid: &OID) -> bool
pub fn check_item_write(&self, oid: &OID) -> bool
pub fn check_pvt_read(&self, path: &str) -> bool
pub fn check_pvt_write(&self, path: &str) -> bool
pub fn check_rpvt_read(&self, path: &str) -> bool
pub fn require_admin(&self) -> EResult<()>
pub fn require_op(&self, op: Op) -> EResult<()>
pub fn require_item_read(&self, oid: &OID) -> EResult<()>
pub fn require_item_write(&self, oid: &OID) -> EResult<()>
pub fn require_pvt_read(&self, path: &str) -> EResult<()>
pub fn require_pvt_write(&self, path: &str) -> EResult<()>
pub fn require_rpvt_read(&self, path: &str) -> EResult<()>
pub fn contains_acl(&self, acl_id: &str) -> bool
pub fn meta(&self) -> Option<&Value>
pub fn from(&self) -> &[String]
Trait Implementations§
source§impl<'de> Deserialize<'de> for Acl
impl<'de> Deserialize<'de> for Acl
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 RefUnwindSafe for Acl
impl Send for Acl
impl Sync for Acl
impl Unpin for Acl
impl UnwindSafe for Acl
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