#[non_exhaustive]pub enum ClientQuotaMatch {
Exact(String),
Default,
Any,
}Expand description
The match specification of a ClientQuotaFilterComponent.
This models the tri-state that Java represents with Optional<String>:
Exact(name)— matches the name exactly (Optional.of(name)),Default— matches the built-in default name (Optional.empty()),Any— matches any specified name (Javanull).
Java distinguishes Optional.empty() (default) from null (any), so the
two must remain distinct here; folding them together would break
equals/wire encoding.
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.
Exact(String)
Matches the provided entity name exactly (Optional.of(name)).
Default
Matches the built-in default entity name (Optional.empty()).
Any
Matches any specified name for the entity type (Java null).
Trait Implementations§
Source§impl Clone for ClientQuotaMatch
impl Clone for ClientQuotaMatch
Source§fn clone(&self) -> ClientQuotaMatch
fn clone(&self) -> ClientQuotaMatch
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 ClientQuotaMatch
impl Debug for ClientQuotaMatch
Source§impl Hash for ClientQuotaMatch
impl Hash for ClientQuotaMatch
Source§impl PartialEq for ClientQuotaMatch
impl PartialEq for ClientQuotaMatch
impl Eq for ClientQuotaMatch
impl StructuralPartialEq for ClientQuotaMatch
Auto Trait Implementations§
impl Freeze for ClientQuotaMatch
impl RefUnwindSafe for ClientQuotaMatch
impl Send for ClientQuotaMatch
impl Sync for ClientQuotaMatch
impl Unpin for ClientQuotaMatch
impl UnsafeUnpin for ClientQuotaMatch
impl UnwindSafe for ClientQuotaMatch
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