Struct google_api_proto::google::cloud::compute::v1::HttpQueryParameterMatch
source · pub struct HttpQueryParameterMatch {
pub exact_match: Option<String>,
pub name: Option<String>,
pub present_match: Option<bool>,
pub regex_match: Option<String>,
}
Expand description
HttpRouteRuleMatch criteria for a request’s query parameter.
Fields§
§exact_match: Option<String>
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, or regexMatch must be set.
name: Option<String>
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
present_match: Option<bool>
Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch, or regexMatch must be set.
regex_match: Option<String>
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
Implementations§
source§impl HttpQueryParameterMatch
impl HttpQueryParameterMatch
sourcepub fn present_match(&self) -> bool
pub fn present_match(&self) -> bool
Returns the value of present_match
, or the default value if present_match
is unset.
sourcepub fn regex_match(&self) -> &str
pub fn regex_match(&self) -> &str
Returns the value of regex_match
, or the default value if regex_match
is unset.
sourcepub fn exact_match(&self) -> &str
pub fn exact_match(&self) -> &str
Returns the value of exact_match
, or the default value if exact_match
is unset.
Trait Implementations§
source§impl Clone for HttpQueryParameterMatch
impl Clone for HttpQueryParameterMatch
source§fn clone(&self) -> HttpQueryParameterMatch
fn clone(&self) -> HttpQueryParameterMatch
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HttpQueryParameterMatch
impl Debug for HttpQueryParameterMatch
source§impl Default for HttpQueryParameterMatch
impl Default for HttpQueryParameterMatch
source§impl Message for HttpQueryParameterMatch
impl Message for HttpQueryParameterMatch
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for HttpQueryParameterMatch
impl PartialEq for HttpQueryParameterMatch
source§fn eq(&self, other: &HttpQueryParameterMatch) -> bool
fn eq(&self, other: &HttpQueryParameterMatch) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HttpQueryParameterMatch
Auto Trait Implementations§
impl Freeze for HttpQueryParameterMatch
impl RefUnwindSafe for HttpQueryParameterMatch
impl Send for HttpQueryParameterMatch
impl Sync for HttpQueryParameterMatch
impl Unpin for HttpQueryParameterMatch
impl UnwindSafe for HttpQueryParameterMatch
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