#[non_exhaustive]pub struct AuthenticationConfig {
pub user_workload_authentication_type: AuthenticationType,
/* private fields */
}Expand description
Authentication configuration for a workload is used to set the default identity for the workload execution. The config specifies the type of identity (service account or user) that will be used by workloads to access resources on the project(s).
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.user_workload_authentication_type: AuthenticationTypeOptional. Authentication type for the user workload running in containers.
Implementations§
Source§impl AuthenticationConfig
impl AuthenticationConfig
pub fn new() -> Self
Sourcepub fn set_user_workload_authentication_type<T: Into<AuthenticationType>>(
self,
v: T,
) -> Self
pub fn set_user_workload_authentication_type<T: Into<AuthenticationType>>( self, v: T, ) -> Self
Sets the value of user_workload_authentication_type.
§Example
ⓘ
use google_cloud_dataproc_v1::model::authentication_config::AuthenticationType;
let x0 = AuthenticationConfig::new().set_user_workload_authentication_type(AuthenticationType::ServiceAccount);
let x1 = AuthenticationConfig::new().set_user_workload_authentication_type(AuthenticationType::EndUserCredentials);Trait Implementations§
Source§impl Clone for AuthenticationConfig
impl Clone for AuthenticationConfig
Source§fn clone(&self) -> AuthenticationConfig
fn clone(&self) -> AuthenticationConfig
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 Debug for AuthenticationConfig
impl Debug for AuthenticationConfig
Source§impl Default for AuthenticationConfig
impl Default for AuthenticationConfig
Source§fn default() -> AuthenticationConfig
fn default() -> AuthenticationConfig
Returns the “default value” for a type. Read more
Source§impl Message for AuthenticationConfig
impl Message for AuthenticationConfig
Source§impl PartialEq for AuthenticationConfig
impl PartialEq for AuthenticationConfig
impl StructuralPartialEq for AuthenticationConfig
Auto Trait Implementations§
impl Freeze for AuthenticationConfig
impl RefUnwindSafe for AuthenticationConfig
impl Send for AuthenticationConfig
impl Sync for AuthenticationConfig
impl Unpin for AuthenticationConfig
impl UnwindSafe for AuthenticationConfig
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