pub struct RequestOption {
pub crypto: CryptoType,
pub cookie: Option<String>,
pub ua: Option<String>,
pub proxy: Option<String>,
pub real_ip: Option<String>,
pub random_cn_ip: bool,
pub e_r: Option<bool>,
pub domain: Option<String>,
pub check_token: bool,
}Expand description
请求选项
Fields§
§crypto: CryptoType§ua: Option<String>§proxy: Option<String>§real_ip: Option<String>§random_cn_ip: bool§e_r: Option<bool>§domain: Option<String>§check_token: boolTrait Implementations§
Source§impl Clone for RequestOption
impl Clone for RequestOption
Source§fn clone(&self) -> RequestOption
fn clone(&self) -> RequestOption
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 RequestOption
impl Debug for RequestOption
Source§impl Default for RequestOption
impl Default for RequestOption
Source§fn default() -> RequestOption
fn default() -> RequestOption
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestOption
impl RefUnwindSafe for RequestOption
impl Send for RequestOption
impl Sync for RequestOption
impl Unpin for RequestOption
impl UnsafeUnpin for RequestOption
impl UnwindSafe for RequestOption
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