Struct controller::traefik::middlewares_crd::MiddlewareIpAllowList
source · pub struct MiddlewareIpAllowList {
pub ip_strategy: Option<MiddlewareIpAllowListIpStrategy>,
pub source_range: Option<Vec<String>>,
}Expand description
IPAllowList holds the IP allowlist middleware configuration. This middleware accepts / refuses requests based on the client IP. More info: https://doc.traefik.io/traefik/v3.0/middlewares/http/ipallowlist/
Fields§
§ip_strategy: Option<MiddlewareIpAllowListIpStrategy>IPStrategy holds the IP strategy configuration used by Traefik to determine the client IP. More info: https://doc.traefik.io/traefik/v3.0/middlewares/http/ipallowlist/#ipstrategy
source_range: Option<Vec<String>>SourceRange defines the set of allowed IPs (or ranges of allowed IPs by using CIDR notation).
Trait Implementations§
source§impl Clone for MiddlewareIpAllowList
impl Clone for MiddlewareIpAllowList
source§fn clone(&self) -> MiddlewareIpAllowList
fn clone(&self) -> MiddlewareIpAllowList
Returns a copy 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 MiddlewareIpAllowList
impl Debug for MiddlewareIpAllowList
source§impl Default for MiddlewareIpAllowList
impl Default for MiddlewareIpAllowList
source§fn default() -> MiddlewareIpAllowList
fn default() -> MiddlewareIpAllowList
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MiddlewareIpAllowList
impl<'de> Deserialize<'de> for MiddlewareIpAllowList
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 JsonSchema for MiddlewareIpAllowList
impl JsonSchema for MiddlewareIpAllowList
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for MiddlewareIpAllowList
impl RefUnwindSafe for MiddlewareIpAllowList
impl Send for MiddlewareIpAllowList
impl Sync for MiddlewareIpAllowList
impl Unpin for MiddlewareIpAllowList
impl UnwindSafe for MiddlewareIpAllowList
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