pub struct HttpBackendRef {
pub backend_ref: Option<BackendRef>,
pub filters: Option<Vec<HttpRouteFilter>>,
}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§
Source§impl Clone for HttpBackendRef
impl Clone for HttpBackendRef
Source§fn clone(&self) -> HttpBackendRef
fn clone(&self) -> HttpBackendRef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HttpBackendRef
impl Debug for HttpBackendRef
Source§impl<'de> Deserialize<'de> for HttpBackendRef
impl<'de> Deserialize<'de> for HttpBackendRef
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HttpBackendRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HttpBackendRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for HttpBackendRef
impl JsonSchema for HttpBackendRef
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 HttpBackendRef
impl PartialEq for HttpBackendRef
Source§impl Serialize for HttpBackendRef
impl Serialize for HttpBackendRef
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for HttpBackendRef
impl StructuralPartialEq for HttpBackendRef
Auto Trait Implementations§
impl Freeze for HttpBackendRef
impl RefUnwindSafe for HttpBackendRef
impl Send for HttpBackendRef
impl Sync for HttpBackendRef
impl Unpin for HttpBackendRef
impl UnwindSafe for HttpBackendRef
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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