Struct spacegate_kernel::config::http_route_dto::SgHttpHeaderMatch
source · pub struct SgHttpHeaderMatch {
pub kind: SgHttpHeaderMatchType,
pub name: String,
pub value: String,
}Expand description
HTTPHeaderMatch describes how to select a HTTP route by matching HTTP request headers.
Fields§
§kind: SgHttpHeaderMatchTypeType specifies how to match against the value of the header.
name: StringName is the name of the HTTP Header to be matched. Name matching MUST be case insensitive. (See https://tools.ietf.org/html/rfc7230#section-3.2).
value: StringValue is the value of HTTP Header to be matched.
Trait Implementations§
source§impl Clone for SgHttpHeaderMatch
impl Clone for SgHttpHeaderMatch
source§fn clone(&self) -> SgHttpHeaderMatch
fn clone(&self) -> SgHttpHeaderMatch
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 SgHttpHeaderMatch
impl Debug for SgHttpHeaderMatch
source§impl Default for SgHttpHeaderMatch
impl Default for SgHttpHeaderMatch
source§fn default() -> SgHttpHeaderMatch
fn default() -> SgHttpHeaderMatch
Returns the “default value” for a type. Read more
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 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