pub enum SgHttpHeaderMatch {
Exact {
name: String,
value: String,
replace: Option<String>,
},
RegExp {
name: String,
re: String,
replace: Option<String>,
},
}Variants§
Exact
Matches the HTTP header exactly and with case sensitivity.
RegExp
Matches if the Http header matches the given regular expression with case sensitivity.
Trait Implementations§
Source§impl Clone for SgHttpHeaderMatch
impl Clone for SgHttpHeaderMatch
Source§fn clone(&self) -> SgHttpHeaderMatch
fn clone(&self) -> SgHttpHeaderMatch
Returns a duplicate 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 SgHttpHeaderMatch
impl Debug for SgHttpHeaderMatch
Source§impl<'de> Deserialize<'de> for SgHttpHeaderMatch
impl<'de> Deserialize<'de> for SgHttpHeaderMatch
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
Auto Trait Implementations§
impl Freeze for SgHttpHeaderMatch
impl RefUnwindSafe for SgHttpHeaderMatch
impl Send for SgHttpHeaderMatch
impl Sync for SgHttpHeaderMatch
impl Unpin for SgHttpHeaderMatch
impl UnwindSafe for SgHttpHeaderMatch
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