pub struct RuleProviderConfig {
pub format: String,
pub behavior: Option<String>,
pub source: String,
pub path: Option<String>,
pub url: Option<String>,
pub interval: Option<u64>,
}Expand description
Rule-set provider configuration.
Fields§
§format: StringFormat: “surge” or “clash”.
behavior: Option<String>Behavior: “domain”, “ipcidr”, “classical”, or “domain-set”.
source: StringSource: “file” or “http”.
path: Option<String>Local file path.
url: Option<String>Remote URL (for http source).
interval: Option<u64>Update interval in seconds (for http source).
Trait Implementations§
Source§impl Clone for RuleProviderConfig
impl Clone for RuleProviderConfig
Source§fn clone(&self) -> RuleProviderConfig
fn clone(&self) -> RuleProviderConfig
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 RuleProviderConfig
impl Debug for RuleProviderConfig
Source§impl<'de> Deserialize<'de> for RuleProviderConfig
impl<'de> Deserialize<'de> for RuleProviderConfig
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 RuleProviderConfig
impl RefUnwindSafe for RuleProviderConfig
impl Send for RuleProviderConfig
impl Sync for RuleProviderConfig
impl Unpin for RuleProviderConfig
impl UnsafeUnpin for RuleProviderConfig
impl UnwindSafe for RuleProviderConfig
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