pub struct MatchRules {
pub path_prefix: Option<String>,
pub header: Option<HeaderMatch>,
pub default: bool,
}Expand description
Backend matching rules.
Fields§
§path_prefix: Option<String>Path prefix for matching.
header: Option<HeaderMatch>Header match rule.
default: boolWhether this is the default backend.
Trait Implementations§
Source§impl Clone for MatchRules
impl Clone for MatchRules
Source§fn clone(&self) -> MatchRules
fn clone(&self) -> MatchRules
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MatchRules
impl Debug for MatchRules
Source§impl Default for MatchRules
impl Default for MatchRules
Source§fn default() -> MatchRules
fn default() -> MatchRules
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MatchRules
impl<'de> Deserialize<'de> for MatchRules
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 MatchRules
impl RefUnwindSafe for MatchRules
impl Send for MatchRules
impl Sync for MatchRules
impl Unpin for MatchRules
impl UnsafeUnpin for MatchRules
impl UnwindSafe for MatchRules
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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