pub struct Cluster {
    pub name: String,
    pub server: String,
    pub certificate_authority: Option<PathBuf>,
    pub certificate_authority_data: Option<String>,
    pub insecure_skip_tls_verify: bool,
}
Expand description

A cluster represents a cluster that the user knows how to connect to.

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

Fields

name: String

The name given to the cluster by the user

server: String

The HTTP address to the server, including protocol

certificate_authority: Option<PathBuf>

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

certificate_authority_data: Option<String>

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

insecure_skip_tls_verify: bool

When set to true this is a signal that any certificate checking should be bypassed by the user agent.

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.