pub struct ClientQuotaEntity { /* private fields */ }Expand description
Describes a client quota entity, which is a mapping of entity types to their names.
Corresponds to org.apache.kafka.common.quota.ClientQuotaEntity.
Java models the mapping as a Map<String, String> whose values may be
null: “If a name is null, then it is mapped to the built-in default entity
name” (e.g. --entity-type users --entity-default). Rust cannot store a
null String, so the faithful representation of Java’s nullable map value
is Option<String>: None is the built-in default entity (wire-null entity
name), and Some(name) is a concretely-named entity (Some(String::new())
is the entity literally named "", which is distinct from the default).
Implementations§
Source§impl ClientQuotaEntity
impl ClientQuotaEntity
Sourcepub fn is_valid_entity_type(entity_type: &str) -> bool
pub fn is_valid_entity_type(entity_type: &str) -> bool
Returns whether the given entity type is one of the built-in types.
Mirrors ClientQuotaEntity.isValidEntityType.
Trait Implementations§
Source§impl Clone for ClientQuotaEntity
impl Clone for ClientQuotaEntity
Source§fn clone(&self) -> ClientQuotaEntity
fn clone(&self) -> ClientQuotaEntity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClientQuotaEntity
impl Debug for ClientQuotaEntity
Source§impl Display for ClientQuotaEntity
impl Display for ClientQuotaEntity
Source§impl Hash for ClientQuotaEntity
impl Hash for ClientQuotaEntity
Source§impl PartialEq for ClientQuotaEntity
impl PartialEq for ClientQuotaEntity
impl Eq for ClientQuotaEntity
Auto Trait Implementations§
impl Freeze for ClientQuotaEntity
impl RefUnwindSafe for ClientQuotaEntity
impl Send for ClientQuotaEntity
impl Sync for ClientQuotaEntity
impl Unpin for ClientQuotaEntity
impl UnsafeUnpin for ClientQuotaEntity
impl UnwindSafe for ClientQuotaEntity
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
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
§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
key and return true if they are equal.