pub struct RouteRule {
pub condition: RouteCondition,
pub provider: String,
pub priority: i32,
}
Expand description
Rule for routing requests
Fields§
§condition: RouteCondition
Condition to match
provider: String
Provider to route to
priority: i32
Rule priority (higher = more priority)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RouteRule
impl<'de> Deserialize<'de> for RouteRule
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 RouteRule
impl RefUnwindSafe for RouteRule
impl Send for RouteRule
impl Sync for RouteRule
impl Unpin for RouteRule
impl UnwindSafe for RouteRule
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