pub struct MiddlewareTCPSpec {
pub in_flight_conn: Option<MiddlewareTCPInFlightConn>,
pub ip_allow_list: Option<MiddlewareTCPIpAllowList>,
pub ip_white_list: Option<MiddlewareTCPIpWhiteList>,
}
Expand description
MiddlewareTCPSpec defines the desired state of a MiddlewareTCP.
Fields§
§in_flight_conn: Option<MiddlewareTCPInFlightConn>
InFlightConn defines the InFlightConn middleware configuration.
ip_allow_list: Option<MiddlewareTCPIpAllowList>
IPAllowList defines the IPAllowList middleware configuration. This middleware accepts/refuses connections based on the client IP. More info: https://doc.traefik.io/traefik/v3.3/middlewares/tcp/ipallowlist/
ip_white_list: Option<MiddlewareTCPIpWhiteList>
IPWhiteList defines the IPWhiteList middleware configuration. This middleware accepts/refuses connections based on the client IP. Deprecated: please use IPAllowList instead. More info: https://doc.traefik.io/traefik/v3.3/middlewares/tcp/ipwhitelist/
Implementations§
Source§impl MiddlewareTCPSpec
impl MiddlewareTCPSpec
Sourcepub fn builder() -> MiddlewareTCPSpecBuilder<((), (), ())>
pub fn builder() -> MiddlewareTCPSpecBuilder<((), (), ())>
Create a builder for building MiddlewareTCPSpec
.
On the builder, call .in_flight_conn(...)
(optional), .ip_allow_list(...)
(optional), .ip_white_list(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of MiddlewareTCPSpec
.
Trait Implementations§
Source§impl Clone for MiddlewareTCPSpec
impl Clone for MiddlewareTCPSpec
Source§fn clone(&self) -> MiddlewareTCPSpec
fn clone(&self) -> MiddlewareTCPSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MiddlewareTCPSpec
impl Debug for MiddlewareTCPSpec
Source§impl Default for MiddlewareTCPSpec
impl Default for MiddlewareTCPSpec
Source§fn default() -> MiddlewareTCPSpec
fn default() -> MiddlewareTCPSpec
Source§impl<'de> Deserialize<'de> for MiddlewareTCPSpec
impl<'de> Deserialize<'de> for MiddlewareTCPSpec
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>,
Source§impl JsonSchema for MiddlewareTCPSpec
impl JsonSchema for MiddlewareTCPSpec
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for MiddlewareTCPSpec
impl PartialEq for MiddlewareTCPSpec
Source§impl Serialize for MiddlewareTCPSpec
impl Serialize for MiddlewareTCPSpec
impl StructuralPartialEq for MiddlewareTCPSpec
Auto Trait Implementations§
impl Freeze for MiddlewareTCPSpec
impl RefUnwindSafe for MiddlewareTCPSpec
impl Send for MiddlewareTCPSpec
impl Sync for MiddlewareTCPSpec
impl Unpin for MiddlewareTCPSpec
impl UnwindSafe for MiddlewareTCPSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more