Struct google_networksecurity1::api::HttpHeaderMatch
source · pub struct HttpHeaderMatch {
pub header_name: Option<String>,
pub regex_match: Option<String>,
}Expand description
Specification of HTTP header match attributes.
This type is not used in any activity, and only used as part of another schema.
Fields§
§header_name: Option<String>Required. The name of the HTTP header to match. For matching against the HTTP request’s authority, use a headerMatch with the header name “:authority”. For matching a request’s method, use the headerName “:method”.
regex_match: Option<String>Required. The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to Host and a regular expression that satisfies the RFC2616 Host header’s port specifier.
Trait Implementations§
source§impl Clone for HttpHeaderMatch
impl Clone for HttpHeaderMatch
source§fn clone(&self) -> HttpHeaderMatch
fn clone(&self) -> HttpHeaderMatch
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for HttpHeaderMatch
impl Debug for HttpHeaderMatch
source§impl Default for HttpHeaderMatch
impl Default for HttpHeaderMatch
source§fn default() -> HttpHeaderMatch
fn default() -> HttpHeaderMatch
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HttpHeaderMatch
impl<'de> Deserialize<'de> for HttpHeaderMatch
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>,
Deserialize this value from the given Serde deserializer. Read more