#[non_exhaustive]pub enum AclOperation {
Show 16 variants
Unknown,
Any,
All,
Read,
Write,
Create,
Delete,
Alter,
Describe,
ClusterAction,
DescribeConfigs,
AlterConfigs,
IdempotentWrite,
CreateTokens,
DescribeTokens,
TwoPhaseCommit,
}Expand description
Represents an operation which an ACL grants or denies permission to perform.
Some operations imply other operations:
ALLOW ALLimpliesALLOWeverythingDENY ALLimpliesDENYeverythingALLOW READimpliesALLOW DESCRIBEALLOW WRITEimpliesALLOW DESCRIBEALLOW DELETEimpliesALLOW DESCRIBEALLOW ALTERimpliesALLOW DESCRIBEALLOW ALTER_CONFIGSimpliesALLOW DESCRIBE_CONFIGS
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
Represents any AclOperation which this client cannot understand,
perhaps because this client is too old.
Any
In a filter, matches any AclOperation.
All
ALL operation.
Read
READ operation.
Write
WRITE operation.
Create
CREATE operation.
Delete
DELETE operation.
Alter
ALTER operation.
Describe
DESCRIBE operation.
ClusterAction
CLUSTER_ACTION operation.
DescribeConfigs
DESCRIBE_CONFIGS operation.
AlterConfigs
ALTER_CONFIGS operation.
IdempotentWrite
IDEMPOTENT_WRITE operation.
CreateTokens
CREATE_TOKENS operation.
DescribeTokens
DESCRIBE_TOKENS operation.
TwoPhaseCommit
TWO_PHASE_COMMIT operation.
Implementations§
Source§impl AclOperation
impl AclOperation
Sourcepub fn from_code(code: i8) -> AclOperation
pub fn from_code(code: i8) -> AclOperation
Returns the AclOperation with the provided code or AclOperation::Unknown
if one cannot be found.
§Arguments
code- the code to look up
Sourcepub fn from_string(str: &str) -> AclOperation
pub fn from_string(str: &str) -> AclOperation
Sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if this operation is AclOperation::Unknown.
Trait Implementations§
Source§impl Clone for AclOperation
impl Clone for AclOperation
Source§fn clone(&self) -> AclOperation
fn clone(&self) -> AclOperation
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 AclOperation
impl Debug for AclOperation
Source§impl Display for AclOperation
impl Display for AclOperation
Source§impl Hash for AclOperation
impl Hash for AclOperation
Source§impl Ord for AclOperation
impl Ord for AclOperation
Source§fn cmp(&self, other: &AclOperation) -> Ordering
fn cmp(&self, other: &AclOperation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AclOperation
impl PartialEq for AclOperation
Source§impl PartialOrd for AclOperation
impl PartialOrd for AclOperation
impl Copy for AclOperation
impl Eq for AclOperation
impl StructuralPartialEq for AclOperation
Auto Trait Implementations§
impl Freeze for AclOperation
impl RefUnwindSafe for AclOperation
impl Send for AclOperation
impl Sync for AclOperation
impl Unpin for AclOperation
impl UnsafeUnpin for AclOperation
impl UnwindSafe for AclOperation
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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