#[non_exhaustive]pub struct GenerateOfflineCredentialResponse {
pub client_certificate: String,
pub client_key: String,
pub user_id: String,
pub expire_time: Option<Timestamp>,
/* private fields */
}Expand description
An offline credential for a cluster.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.client_certificate: StringOutput only. Client certificate to authenticate to k8s api-server.
client_key: StringOutput only. Client private key to authenticate to k8s api-server.
user_id: StringOutput only. Client’s identity.
expire_time: Option<Timestamp>Output only. Timestamp at which this credential will expire.
Implementations§
Source§impl GenerateOfflineCredentialResponse
impl GenerateOfflineCredentialResponse
pub fn new() -> Self
Sourcepub fn set_client_certificate<T: Into<String>>(self, v: T) -> Self
pub fn set_client_certificate<T: Into<String>>(self, v: T) -> Self
Sets the value of client_certificate.
Sourcepub fn set_client_key<T: Into<String>>(self, v: T) -> Self
pub fn set_client_key<T: Into<String>>(self, v: T) -> Self
Sets the value of client_key.
Sourcepub fn set_user_id<T: Into<String>>(self, v: T) -> Self
pub fn set_user_id<T: Into<String>>(self, v: T) -> Self
Sets the value of user_id.
Sourcepub fn set_expire_time<T>(self, v: T) -> Self
pub fn set_expire_time<T>(self, v: T) -> Self
Sets the value of expire_time.
Sourcepub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of expire_time.
Trait Implementations§
Source§impl Clone for GenerateOfflineCredentialResponse
impl Clone for GenerateOfflineCredentialResponse
Source§fn clone(&self) -> GenerateOfflineCredentialResponse
fn clone(&self) -> GenerateOfflineCredentialResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GenerateOfflineCredentialResponse
impl Default for GenerateOfflineCredentialResponse
Source§fn default() -> GenerateOfflineCredentialResponse
fn default() -> GenerateOfflineCredentialResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for GenerateOfflineCredentialResponse
impl PartialEq for GenerateOfflineCredentialResponse
Source§fn eq(&self, other: &GenerateOfflineCredentialResponse) -> bool
fn eq(&self, other: &GenerateOfflineCredentialResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GenerateOfflineCredentialResponse
Auto Trait Implementations§
impl Freeze for GenerateOfflineCredentialResponse
impl RefUnwindSafe for GenerateOfflineCredentialResponse
impl Send for GenerateOfflineCredentialResponse
impl Sync for GenerateOfflineCredentialResponse
impl Unpin for GenerateOfflineCredentialResponse
impl UnwindSafe for GenerateOfflineCredentialResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more