pub struct HostRule {
pub description: Option<String>,
pub hosts: Option<Vec<String>>,
pub path_matcher: Option<String>,
}
Expand description
UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.
This type is not used in any activity, and only used as part of another schema.
Fields§
§description: Option<String>
An optional description of this resource. Provide this property when you create the resource.
hosts: Option<Vec<String>>
The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
path_matcher: Option<String>
The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HostRule
impl<'de> Deserialize<'de> for HostRule
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>,
impl Part for HostRule
Auto Trait Implementations§
impl Freeze for HostRule
impl RefUnwindSafe for HostRule
impl Send for HostRule
impl Sync for HostRule
impl Unpin for HostRule
impl UnwindSafe for HostRule
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