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§

source§

impl Clone for AuthConfig

source§

fn clone(&self) -> AuthConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AuthConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for AuthConfig

source§

fn default() -> AuthConfig

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for AuthConfig

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<AuthConfig> for AuthConfig

source§

fn eq(&self, other: &AuthConfig) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for AuthConfig

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for AuthConfig

source§

impl StructuralEq for AuthConfig

source§

impl StructuralPartialEq for AuthConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,