pub struct ClientQuotaFilterComponent {
pub entity_type: String,
pub match_type: i8,
pub match_value: Option<String>,
}Expand description
One filter component in DescribeClientQuotas (api 48).
Self::of_entity / Self::of_default_entity / Self::of_entity_type
are Java ClientQuotaFilterComponent factories. std::fmt::Display is Java
ClientQuotaFilterComponent.toString (match is Optional[name],
Optional.empty, or null).
Fields§
§entity_type: StringQuota entity type (for example client-id).
match_type: i8Quota filter match type (QUOTA_MATCH_*).
match_value: Option<String>Quota filter match value.
Implementations§
Source§impl ClientQuotaFilterComponent
impl ClientQuotaFilterComponent
Sourcepub fn new(
entity_type: impl Into<String>,
match_type: i8,
match_value: Option<String>,
) -> Self
pub fn new( entity_type: impl Into<String>, match_type: i8, match_value: Option<String>, ) -> Self
Construct Self.
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
Java ClientQuotaFilterComponent.ofEntity.
Sourcepub fn of_default_entity(entity_type: impl Into<String>) -> Self
pub fn of_default_entity(entity_type: impl Into<String>) -> Self
Java ClientQuotaFilterComponent.ofDefaultEntity.
Sourcepub fn of_entity_type(entity_type: impl Into<String>) -> Self
pub fn of_entity_type(entity_type: impl Into<String>) -> Self
Java ClientQuotaFilterComponent.ofEntityType (any specified name).
Sourcepub fn entity_type(&self) -> &str
pub fn entity_type(&self) -> &str
Java ClientQuotaFilterComponent.entityType.
Sourcepub fn matched(&self) -> Option<Option<&str>>
pub fn matched(&self) -> Option<Option<&str>>
Java ClientQuotaFilterComponent.match.
Present inner is an exact name (Self::of_entity). Empty inner is
the default entity (Self::of_default_entity). Outer None is any
specified name (Self::of_entity_type).
Trait Implementations§
Source§impl Clone for ClientQuotaFilterComponent
impl Clone for ClientQuotaFilterComponent
Source§fn clone(&self) -> ClientQuotaFilterComponent
fn clone(&self) -> ClientQuotaFilterComponent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more