pub struct RoutingConfigCondition {
pub _type: ConditionType,
pub operator: ConditionOperator,
pub key: Option<String>,
pub value: String,
}Expand description
RoutingConfigCondition : A condition that must be met for a rule to match.
Fields§
§_type: ConditionType§operator: ConditionOperator§key: Option<String>The key to evaluate. For header conditions this is the header name. Required for header conditions.
value: StringThe value to compare against using the operator.
Implementations§
Source§impl RoutingConfigCondition
impl RoutingConfigCondition
Sourcepub fn new(
_type: ConditionType,
operator: ConditionOperator,
value: String,
) -> RoutingConfigCondition
pub fn new( _type: ConditionType, operator: ConditionOperator, value: String, ) -> RoutingConfigCondition
A condition that must be met for a rule to match.
Trait Implementations§
Source§impl Clone for RoutingConfigCondition
impl Clone for RoutingConfigCondition
Source§fn clone(&self) -> RoutingConfigCondition
fn clone(&self) -> RoutingConfigCondition
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 RoutingConfigCondition
impl Debug for RoutingConfigCondition
Source§impl Default for RoutingConfigCondition
impl Default for RoutingConfigCondition
Source§fn default() -> RoutingConfigCondition
fn default() -> RoutingConfigCondition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RoutingConfigCondition
impl<'de> Deserialize<'de> for RoutingConfigCondition
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 RoutingConfigCondition
impl PartialEq for RoutingConfigCondition
Source§impl Serialize for RoutingConfigCondition
impl Serialize for RoutingConfigCondition
impl StructuralPartialEq for RoutingConfigCondition
Auto Trait Implementations§
impl Freeze for RoutingConfigCondition
impl RefUnwindSafe for RoutingConfigCondition
impl Send for RoutingConfigCondition
impl Sync for RoutingConfigCondition
impl Unpin for RoutingConfigCondition
impl UnsafeUnpin for RoutingConfigCondition
impl UnwindSafe for RoutingConfigCondition
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