pub struct RoutingRule {
pub condition: Condition,
pub provider: String,
pub weight: f32,
}
Expand description
Routing rule for conditional routing.
Defines a condition that must be met and the provider to route to when that condition is satisfied.
Fields§
§condition: Condition
Condition that must be met for this rule to apply
provider: String
Provider to route to when condition is met
weight: f32
Weight for this rule (used in weighted selection)
Trait Implementations§
Source§impl Clone for RoutingRule
impl Clone for RoutingRule
Source§fn clone(&self) -> RoutingRule
fn clone(&self) -> RoutingRule
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 RoutingRule
impl Debug for RoutingRule
Source§impl<'de> Deserialize<'de> for RoutingRule
impl<'de> Deserialize<'de> for RoutingRule
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 RoutingRule
impl RefUnwindSafe for RoutingRule
impl Send for RoutingRule
impl Sync for RoutingRule
impl Unpin for RoutingRule
impl UnwindSafe for RoutingRule
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