use crate::schema::Key;
use spider_route::{ProxyPool, RequestMode};
pub trait Params {
fn is_set(&self, key: Key) -> bool;
fn request(&self) -> Option<RequestMode>;
fn proxy(&self) -> Option<ProxyPool>;
fn idle_wait_millis(&self) -> Option<u32>;
fn flag(&self, key: Key) -> Option<bool>;
fn list(&self, key: Key) -> Option<&[String]>;
fn set_request(&mut self, mode: RequestMode);
fn set_proxy(&mut self, pool: ProxyPool);
fn set_idle_wait(&mut self, millis: u32);
fn set_flag(&mut self, key: Key, value: bool);
fn set_list(&mut self, key: Key, list: Option<Vec<String>>);
}