pub struct VPN<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub group: Option<String<50usize>>,
pub key: String<255usize>,
pub password: String<64usize>,
pub server: String,
pub type: VPNEnum,
pub user: String<50usize>,
}Expand description
VPN Configuration settings
Fields§
§custom_data: Option<CustomDataType>§group: Option<String<50usize>>VPN group.
key: String<255usize>VPN shared secret.
password: String<64usize>(2.1) VPN Password.
server: StringVPN Server Address
type: VPNEnum§user: String<50usize>VPN User
Trait Implementations§
Source§impl<'de, CustomDataType> Deserialize<'de> for VPN<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for VPN<CustomDataType>where
CustomDataType: Deserialize<'de>,
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
impl<CustomDataType: Eq> Eq for VPN<CustomDataType>
impl<CustomDataType: PartialEq> StructuralPartialEq for VPN<CustomDataType>
Auto Trait Implementations§
impl<CustomDataType> Freeze for VPN<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for VPN<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for VPN<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for VPN<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for VPN<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for VPN<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for VPN<CustomDataType>where
CustomDataType: UnwindSafe,
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