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
A PathBuf
representing the certificate authority associated with this
cluster. This is a path to a file on the disk.
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
sourceimpl<'de> Deserialize<'de> for Cluster
impl<'de> Deserialize<'de> for Cluster
sourcefn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl UnwindSafe for Cluster
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more