pub struct ProxyNode {
pub name: String,
pub proxy_type: ProxyType,
pub server: String,
pub port: u16,
pub extra: IndexMap<String, Value>,
}Fields§
§name: String§proxy_type: ProxyType§server: String§port: u16§extra: IndexMap<String, Value>Implementations§
Source§impl ProxyNode
impl ProxyNode
pub fn new( name: String, proxy_type: ProxyType, server: String, port: u16, ) -> Self
pub fn set_str(&mut self, key: &str, value: impl Into<String>)
pub fn set_bool(&mut self, key: &str, value: bool)
pub fn set_u64(&mut self, key: &str, value: u64)
pub fn set_value(&mut self, key: &str, value: Value)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ProxyNode
impl<'de> Deserialize<'de> for ProxyNode
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 ProxyNode
impl RefUnwindSafe for ProxyNode
impl Send for ProxyNode
impl Sync for ProxyNode
impl Unpin for ProxyNode
impl UnsafeUnpin for ProxyNode
impl UnwindSafe for ProxyNode
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