pub struct ClientQuotaFilterComponent { /* private fields */ }Expand description
Describes a component for applying a client quota filter.
Implementations§
Source§impl ClientQuotaFilterComponent
impl ClientQuotaFilterComponent
Sourcepub fn of_entity(
entity_type: impl Into<String>,
entity_name: impl Into<String>,
) -> Self
pub fn of_entity( entity_type: impl Into<String>, entity_name: impl Into<String>, ) -> Self
Constructs and returns a filter component that exactly matches the provided entity name for the entity type.
§Arguments
entity_type- the entity type the filter component applies toentity_name- the entity name that’s matched exactly
Sourcepub fn of_default_entity(entity_type: impl Into<String>) -> Self
pub fn of_default_entity(entity_type: impl Into<String>) -> Self
Constructs and returns a filter component that matches the built-in default entity name for the entity type.
§Arguments
entity_type- the entity type the filter component applies to
Sourcepub fn of_entity_type(entity_type: impl Into<String>) -> Self
pub fn of_entity_type(entity_type: impl Into<String>) -> Self
Constructs and returns a filter component that matches any specified name for the entity type.
§Arguments
entity_type- the entity type the filter component applies to
Sourcepub fn entity_type(&self) -> &str
pub fn entity_type(&self) -> &str
§Returns
the component’s entity type
Sourcepub fn match(&self) -> &ClientQuotaMatch
pub fn match(&self) -> &ClientQuotaMatch
§Returns
the match specification, where:
Exact(name): the name that’s matched exactlyDefault: matches the default nameAny: matches any specified name
Trait Implementations§
Source§impl Clone for ClientQuotaFilterComponent
impl Clone for ClientQuotaFilterComponent
Source§fn clone(&self) -> ClientQuotaFilterComponent
fn clone(&self) -> ClientQuotaFilterComponent
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 ClientQuotaFilterComponent
impl Debug for ClientQuotaFilterComponent
Source§impl Display for ClientQuotaFilterComponent
impl Display for ClientQuotaFilterComponent
Source§impl Hash for ClientQuotaFilterComponent
impl Hash for ClientQuotaFilterComponent
impl Eq for ClientQuotaFilterComponent
impl StructuralPartialEq for ClientQuotaFilterComponent
Auto Trait Implementations§
impl Freeze for ClientQuotaFilterComponent
impl RefUnwindSafe for ClientQuotaFilterComponent
impl Send for ClientQuotaFilterComponent
impl Sync for ClientQuotaFilterComponent
impl Unpin for ClientQuotaFilterComponent
impl UnsafeUnpin for ClientQuotaFilterComponent
impl UnwindSafe for ClientQuotaFilterComponent
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