pub struct RoutingConfig {
pub mode: String,
pub whitelist_domains: Vec<String>,
}Fields§
§mode: String“whitelist” (recommended: only listed domains use proxy, everything else goes direct) or “bypass_ir” (everything uses proxy except geosite:ir / geoip:ir).
whitelist_domains: Vec<String>Trait Implementations§
Source§impl Clone for RoutingConfig
impl Clone for RoutingConfig
Source§impl Debug for RoutingConfig
impl Debug for RoutingConfig
Source§impl Default for RoutingConfig
impl Default for RoutingConfig
Source§impl<'de> Deserialize<'de> for RoutingConfig
impl<'de> Deserialize<'de> for RoutingConfig
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 Forget for RoutingConfig
impl Freeze for RoutingConfig
impl Move for RoutingConfig
impl RefUnwindSafe for RoutingConfig
impl Send for RoutingConfigwhere
RawVecInner: Send,
impl Sync for RoutingConfigwhere
RawVecInner: Sync,
impl Unpin for RoutingConfig
impl UnsafeUnpin for RoutingConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for RoutingConfigwhere
RawVecInner: UnwindSafe,
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