Enum google_api_proto::google::cloud::networkservices::v1::http_route::route_match::PathMatch
source · pub enum PathMatch {
FullPathMatch(String),
PrefixMatch(String),
RegexMatch(String),
}
Variants§
FullPathMatch(String)
The HTTP request path value should exactly match this value.
Only one of full_path_match, prefix_match, or regex_match should be used.
PrefixMatch(String)
The HTTP request path value must begin with specified prefix_match. prefix_match must begin with a /.
Only one of full_path_match, prefix_match, or regex_match should be used.
RegexMatch(String)
The HTTP request path value must satisfy the regular expression specified by regex_match after removing any query parameters and anchor supplied with the original URL. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax
Only one of full_path_match, prefix_match, or regex_match should be used.
Implementations§
source§impl PathMatch
impl PathMatch
sourcepub fn merge(
field: &mut Option<PathMatch>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<PathMatch>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl PartialEq for PathMatch
impl PartialEq for PathMatch
impl StructuralPartialEq for PathMatch
Auto Trait Implementations§
impl Freeze for PathMatch
impl RefUnwindSafe for PathMatch
impl Send for PathMatch
impl Sync for PathMatch
impl Unpin for PathMatch
impl UnwindSafe for PathMatch
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request