Struct k8s_gateway_api::HttpBackendRef
source · [−]pub struct HttpBackendRef {
pub backend_ref: Option<BackendRef>,
pub filters: Option<Vec<HttpRouteFilter>>,
}
Expand description
HTTPBackendRef defines how a HTTPRoute should forward an HTTP request.
Fields
backend_ref: Option<BackendRef>
BackendRef is a reference to a backend to forward matched requests to.
If the referent cannot be found, this HTTPBackendRef is invalid and must
be dropped from the Gateway. The controller must ensure the
“ResolvedRefs” condition on the Route is set to status: False
and not
configure this backend in the underlying implementation.
If there is a cross-namespace reference to an existing object
that is not covered by a ReferencePolicy, the controller must ensure the
“ResolvedRefs” condition on the Route is set to status: False
,
with the “RefNotPermitted” reason and not configure this backend in the
underlying implementation.
In either error case, the Message of the ResolvedRefs
Condition
should be used to provide more detail about the problem.
Support: Custom
filters: Option<Vec<HttpRouteFilter>>
Filters defined at this level should be executed if and only if the request is being forwarded to the backend defined here.
Support: Custom (For broader support of filters, use the Filters field in HTTPRouteRule.)
Trait Implementations
sourceimpl Clone for HttpBackendRef
impl Clone for HttpBackendRef
sourcefn clone(&self) -> HttpBackendRef
fn clone(&self) -> HttpBackendRef
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HttpBackendRef
impl Debug for HttpBackendRef
sourceimpl<'de> Deserialize<'de> for HttpBackendRef
impl<'de> Deserialize<'de> for HttpBackendRef
sourcefn 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
sourceimpl JsonSchema for HttpBackendRef
impl JsonSchema for HttpBackendRef
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 more
sourceimpl PartialEq<HttpBackendRef> for HttpBackendRef
impl PartialEq<HttpBackendRef> for HttpBackendRef
sourcefn eq(&self, other: &HttpBackendRef) -> bool
fn eq(&self, other: &HttpBackendRef) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HttpBackendRef) -> bool
fn ne(&self, other: &HttpBackendRef) -> bool
This method tests for !=
.
sourceimpl Serialize for HttpBackendRef
impl Serialize for HttpBackendRef
impl StructuralPartialEq for HttpBackendRef
Auto Trait Implementations
impl RefUnwindSafe for HttpBackendRef
impl Send for HttpBackendRef
impl Sync for HttpBackendRef
impl Unpin for HttpBackendRef
impl UnwindSafe for HttpBackendRef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more