pub struct AddProxy {
pub server: String,
pub port: i32,
pub enable: bool,
pub type_: ProxyType,
}Expand description
Adds a proxy server for network requests. Can be called before authorization
Fields§
§server: StringProxy server IP address
port: i32Proxy server port
enable: boolTrue, if the proxy should be enabled
type_: ProxyTypeProxy type
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AddProxy
impl<'de> Deserialize<'de> for AddProxy
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 AddProxy
impl RefUnwindSafe for AddProxy
impl Send for AddProxy
impl Sync for AddProxy
impl Unpin for AddProxy
impl UnwindSafe for AddProxy
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