pub struct HttpRuleProvider {
pub url: String,
pub interval: u64,
pub behavior: RuleSetBehavior,
pub path: String,
pub proxy: Option<String>,
pub header: Option<HashMap<String, Vec<String>>>,
}Fields§
§url: String§interval: u64§behavior: RuleSetBehavior§path: String§proxy: Option<String>the proxy used for requesting the url
header: Option<HashMap<String, Vec<String>>>the http used for requesting the url
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HttpRuleProvider
impl<'de> Deserialize<'de> for HttpRuleProvider
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 HttpRuleProvider
impl RefUnwindSafe for HttpRuleProvider
impl Send for HttpRuleProvider
impl Sync for HttpRuleProvider
impl Unpin for HttpRuleProvider
impl UnwindSafe for HttpRuleProvider
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