pub struct AccessControlEntryFilter { /* private fields */ }Expand description
Represents a filter which matches access control entries.
Implementations§
Source§impl AccessControlEntryFilter
impl AccessControlEntryFilter
Sourcepub fn new(
principal: Option<String>,
host: Option<String>,
operation: AclOperation,
permission_type: AclPermissionType,
) -> AccessControlEntryFilter
pub fn new( principal: Option<String>, host: Option<String>, operation: AclOperation, permission_type: AclPermissionType, ) -> AccessControlEntryFilter
Create an instance of an access control entry filter with the provided parameters.
§Arguments
principal- the principal orNonehost- the host orNoneoperation- operationpermission_type- permission type
Sourcepub fn any() -> AccessControlEntryFilter
pub fn any() -> AccessControlEntryFilter
Matches any access control entry.
Sourcepub fn operation(&self) -> AclOperation
pub fn operation(&self) -> AclOperation
Returns the AclOperation.
Sourcepub fn permission_type(&self) -> AclPermissionType
pub fn permission_type(&self) -> AclPermissionType
Returns the AclPermissionType.
Sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if there are any UNKNOWN components.
Sourcepub fn matches(&self, other: &AccessControlEntry) -> bool
pub fn matches(&self, other: &AccessControlEntry) -> bool
Returns true if this filter matches the given AccessControlEntry.
§Arguments
other- the entry to match
Sourcepub fn matches_at_most_one(&self) -> bool
pub fn matches_at_most_one(&self) -> bool
Returns true if this filter could only match one ACE – in other words, if there are no ANY or UNKNOWN fields.
Sourcepub fn find_indefinite_field(&self) -> Option<String>
pub fn find_indefinite_field(&self) -> Option<String>
Returns a string describing an ANY or UNKNOWN field, or None if there
is no such field.
Trait Implementations§
Source§impl Clone for AccessControlEntryFilter
impl Clone for AccessControlEntryFilter
Source§fn clone(&self) -> AccessControlEntryFilter
fn clone(&self) -> AccessControlEntryFilter
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 AccessControlEntryFilter
impl Debug for AccessControlEntryFilter
Source§impl Display for AccessControlEntryFilter
impl Display for AccessControlEntryFilter
Source§impl Hash for AccessControlEntryFilter
impl Hash for AccessControlEntryFilter
Source§impl PartialEq for AccessControlEntryFilter
impl PartialEq for AccessControlEntryFilter
impl Eq for AccessControlEntryFilter
impl StructuralPartialEq for AccessControlEntryFilter
Auto Trait Implementations§
impl Freeze for AccessControlEntryFilter
impl RefUnwindSafe for AccessControlEntryFilter
impl Send for AccessControlEntryFilter
impl Sync for AccessControlEntryFilter
impl Unpin for AccessControlEntryFilter
impl UnsafeUnpin for AccessControlEntryFilter
impl UnwindSafe for AccessControlEntryFilter
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more