pub struct HeaderMatchMethod {
pub exact: Option<String>,
pub prefix: Option<String>,
pub range: Option<MatchRange>,
pub regex: Option<String>,
pub suffix: Option<String>,
}
Expand description
An object that represents the method and value to match with the header value sent in a request. Specify one match method.
Fields§
§exact: Option<String>
The value sent by the client must match the specified value exactly.
prefix: Option<String>
The value sent by the client must begin with the specified characters.
range: Option<MatchRange>
An object that represents the range of values to match on.
regex: Option<String>
The value sent by the client must include the specified characters.
suffix: Option<String>
The value sent by the client must end with the specified characters.
Trait Implementations§
Source§impl Clone for HeaderMatchMethod
impl Clone for HeaderMatchMethod
Source§fn clone(&self) -> HeaderMatchMethod
fn clone(&self) -> HeaderMatchMethod
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 HeaderMatchMethod
impl Debug for HeaderMatchMethod
Source§impl Default for HeaderMatchMethod
impl Default for HeaderMatchMethod
Source§fn default() -> HeaderMatchMethod
fn default() -> HeaderMatchMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HeaderMatchMethod
impl<'de> Deserialize<'de> for HeaderMatchMethod
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
Source§impl PartialEq for HeaderMatchMethod
impl PartialEq for HeaderMatchMethod
Source§impl Serialize for HeaderMatchMethod
impl Serialize for HeaderMatchMethod
impl StructuralPartialEq for HeaderMatchMethod
Auto Trait Implementations§
impl Freeze for HeaderMatchMethod
impl RefUnwindSafe for HeaderMatchMethod
impl Send for HeaderMatchMethod
impl Sync for HeaderMatchMethod
impl Unpin for HeaderMatchMethod
impl UnwindSafe for HeaderMatchMethod
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
Mutably borrows from an owned value. Read more