Struct netplan_types::AuthConfig
source · [−]pub struct AuthConfig {
pub key_managment: Option<KeyManagmentMode>,
pub password: Option<String>,
pub method: Option<AuthMethod>,
pub identity: Option<String>,
pub anonymous_identity: Option<String>,
pub ca_certificate: Option<String>,
pub client_certificate: Option<String>,
pub client_key: Option<String>,
pub client_key_password: Option<String>,
pub phase2_auth: Option<String>,
}Expand description
Netplan supports advanced authentication settings for ethernet and wifi interfaces, as well as individual wifi networks, by means of the auth block.
Fields
key_managment: Option<KeyManagmentMode>The supported key management modes are none (no key management); psk (WPA with pre-shared key, common for home wifi); eap (WPA with EAP, common for enterprise wifi); and 802.1x (used primarily for wired Ethernet connections).
password: Option<String>The password string for EAP, or the pre-shared key for WPA-PSK.
method: Option<AuthMethod>The EAP method to use. The supported EAP methods are tls (TLS), peap (Protected EAP), and ttls (Tunneled TLS).
identity: Option<String>The identity to use for EAP.
anonymous_identity: Option<String>The identity to pass over the unencrypted channel if the chosen EAP method supports passing a different tunnelled identity.
ca_certificate: Option<String>Path to a file with one or more trusted certificate authority (CA) certificates.
client_certificate: Option<String>Path to a file containing the certificate to be used by the client during authentication.
client_key: Option<String>Path to a file containing the private key corresponding to client-certificate.
client_key_password: Option<String>Password to use to decrypt the private key specified in client-key if it is encrypted.
phase2_auth: Option<String>Phase 2 authentication mechanism.
Trait Implementations
sourceimpl Clone for AuthConfig
impl Clone for AuthConfig
sourcefn clone(&self) -> AuthConfig
fn clone(&self) -> AuthConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AuthConfig
impl Debug for AuthConfig
sourceimpl Default for AuthConfig
impl Default for AuthConfig
sourcefn default() -> AuthConfig
fn default() -> AuthConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AuthConfig
impl<'de> Deserialize<'de> for AuthConfig
sourcefn 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
sourceimpl PartialEq<AuthConfig> for AuthConfig
impl PartialEq<AuthConfig> for AuthConfig
sourcefn eq(&self, other: &AuthConfig) -> bool
fn eq(&self, other: &AuthConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AuthConfig) -> bool
fn ne(&self, other: &AuthConfig) -> bool
This method tests for !=.
sourceimpl Serialize for AuthConfig
impl Serialize for AuthConfig
impl Eq for AuthConfig
impl StructuralEq for AuthConfig
impl StructuralPartialEq for AuthConfig
Auto Trait Implementations
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnwindSafe for AuthConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more