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
sourceimpl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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 User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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