pub struct RouteRuleConfig {
pub rule_set: Option<String>,
pub rule_type: Option<String>,
pub value: Option<String>,
pub outbound: String,
}Expand description
A single routing rule entry.
Fields§
§rule_set: Option<String>Reference to a named rule-set provider.
rule_type: Option<String>Inline rule type: “GEOIP”, “FINAL”, “DOMAIN”, “DOMAIN-SUFFIX”, etc.
value: Option<String>Inline rule value (e.g., “CN” for GEOIP, “example.com” for DOMAIN).
outbound: StringAction: “DIRECT”, “REJECT”, or a named outbound.
Trait Implementations§
Source§impl Clone for RouteRuleConfig
impl Clone for RouteRuleConfig
Source§fn clone(&self) -> RouteRuleConfig
fn clone(&self) -> RouteRuleConfig
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 RouteRuleConfig
impl Debug for RouteRuleConfig
Source§impl<'de> Deserialize<'de> for RouteRuleConfig
impl<'de> Deserialize<'de> for RouteRuleConfig
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 RouteRuleConfig
impl RefUnwindSafe for RouteRuleConfig
impl Send for RouteRuleConfig
impl Sync for RouteRuleConfig
impl Unpin for RouteRuleConfig
impl UnsafeUnpin for RouteRuleConfig
impl UnwindSafe for RouteRuleConfig
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