pub struct TcpRouteRule {
pub backend_refs: Vec<BackendRef>,
}
Expand description
TCPRouteRule is the configuration for a given rule.
Fields§
§backend_refs: Vec<BackendRef>
BackendRefs defines the backend(s) where matching requests should be sent. If unspecified or invalid (refers to a non-existent resource or a Service with no endpoints), the underlying implementation MUST actively reject connection attempts to this backend. Connection rejections must respect weight; if an invalid backend is requested to have 80% of connections, then 80% of connections must be rejected instead.
Support: Core for Kubernetes Service Support: Custom for any other resource
Support for weight: Extended
Trait Implementations§
Source§impl Clone for TcpRouteRule
impl Clone for TcpRouteRule
Source§fn clone(&self) -> TcpRouteRule
fn clone(&self) -> TcpRouteRule
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 TcpRouteRule
impl Debug for TcpRouteRule
Source§impl<'de> Deserialize<'de> for TcpRouteRule
impl<'de> Deserialize<'de> for TcpRouteRule
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 TcpRouteRule
impl JsonSchema for TcpRouteRule
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &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 moreSource§impl PartialEq for TcpRouteRule
impl PartialEq for TcpRouteRule
Source§impl Serialize for TcpRouteRule
impl Serialize for TcpRouteRule
impl Eq for TcpRouteRule
impl StructuralPartialEq for TcpRouteRule
Auto Trait Implementations§
impl Freeze for TcpRouteRule
impl RefUnwindSafe for TcpRouteRule
impl Send for TcpRouteRule
impl Sync for TcpRouteRule
impl Unpin for TcpRouteRule
impl UnwindSafe for TcpRouteRule
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