pub struct User {
    pub name: String,
    pub token: Option<String>,
    pub username: Option<String>,
    pub password: Option<String>,
    pub client_certificate: Option<PathBuf>,
    pub client_certificate_data: Option<String>,
    pub client_key: Option<PathBuf>,
    pub client_key_data: Option<String>,
}
Expand description

A user represents a user that can be used to log in to one of the clusters given in the Cluster struct. The mapping of which user can log in to which clusters are maintained in the Context set found in the Config struct.

Note: The user struct is flattened when compared to its representation in the yaml file. There is no user mapping, the values of the user mapping are directly accessible on the User struct.

Fields

name: String

The name given to this user by the user

token: Option<String>username: Option<String>password: Option<String>client_certificate: Option<PathBuf>

A PathBuf representing the client certificate associated with this user. This is a path to a file on the disk.

client_certificate_data: Option<String>

A string representing the client certificate associated with this user. This is a base64 encoded string containing the CA data.

client_key: Option<PathBuf>

A PathBuf representing the client key associated with this user. This is a path to a file on the disk.

client_key_data: Option<String>

A string representing the client key associated with this user. This is a base64 encoded string containing the CA data.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.