pub struct IpProvider {
pub name: String,
pub url: String,
pub retry_codes: Vec<u16>,
pub timeout: u64,
pub rate_limit: f32,
pub provider_expire_time: Option<String>,
pub proxy_expire_time: u64,
pub weight: Option<u32>,
}Fields§
§name: String§url: String§retry_codes: Vec<u16>§timeout: u64§rate_limit: f32§provider_expire_time: Option<String>§proxy_expire_time: u64§weight: Option<u32>Trait Implementations§
Source§impl Clone for IpProvider
impl Clone for IpProvider
Source§fn clone(&self) -> IpProvider
fn clone(&self) -> IpProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IpProvider
impl Debug for IpProvider
Source§impl<'de> Deserialize<'de> for IpProvider
impl<'de> Deserialize<'de> for IpProvider
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 IpProvider
impl RefUnwindSafe for IpProvider
impl Send for IpProvider
impl Sync for IpProvider
impl Unpin for IpProvider
impl UnsafeUnpin for IpProvider
impl UnwindSafe for IpProvider
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