pub struct ConsumerRestriction {
pub type_field: Option<ConsumerRestrictionType>,
pub whitelist: Option<Vec<String>>,
pub blacklist: Option<Vec<String>>,
pub rejected_code: Option<i32>,
pub rejected_msg: Option<String>,
pub allowed_by_methods: Option<Vec<AllowedByMethods>>,
}Expand description
The consumer-restriction Plugin allows users to configure access restrictions on Consumer, Route, Service, or Consumer Group.
Fields§
§type_field: Option<ConsumerRestrictionType>§whitelist: Option<Vec<String>>§blacklist: Option<Vec<String>>§rejected_code: Option<i32>§rejected_msg: Option<String>§allowed_by_methods: Option<Vec<AllowedByMethods>>Trait Implementations§
Source§impl Clone for ConsumerRestriction
impl Clone for ConsumerRestriction
Source§fn clone(&self) -> ConsumerRestriction
fn clone(&self) -> ConsumerRestriction
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 ConsumerRestriction
impl Debug for ConsumerRestriction
Source§impl Default for ConsumerRestriction
impl Default for ConsumerRestriction
Source§fn default() -> ConsumerRestriction
fn default() -> ConsumerRestriction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConsumerRestriction
impl<'de> Deserialize<'de> for ConsumerRestriction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ConsumerRestriction> for ConsumerRestrictionBuilder
impl From<ConsumerRestriction> for ConsumerRestrictionBuilder
Source§fn from(consumer_restriction: ConsumerRestriction) -> Self
fn from(consumer_restriction: ConsumerRestriction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConsumerRestriction
impl PartialEq for ConsumerRestriction
Source§impl Serialize for ConsumerRestriction
impl Serialize for ConsumerRestriction
Source§impl Validate for ConsumerRestriction
impl Validate for ConsumerRestriction
Source§impl<'v_a> ValidateArgs<'v_a> for ConsumerRestriction
impl<'v_a> ValidateArgs<'v_a> for ConsumerRestriction
impl Plugin for ConsumerRestriction
impl StructuralPartialEq for ConsumerRestriction
Auto Trait Implementations§
impl Freeze for ConsumerRestriction
impl RefUnwindSafe for ConsumerRestriction
impl Send for ConsumerRestriction
impl Sync for ConsumerRestriction
impl Unpin for ConsumerRestriction
impl UnwindSafe for ConsumerRestriction
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