#[non_exhaustive]pub struct AuthConfigTemplate {
pub auth_type: AuthType,
pub config_variable_templates: Vec<ConfigVariableTemplate>,
pub display_name: String,
pub description: String,
/* private fields */
}Expand description
AuthConfigTemplate defines required field over an authentication type.
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.auth_type: AuthTypeThe type of authentication configured.
config_variable_templates: Vec<ConfigVariableTemplate>Config variables to describe an AuthConfig for a Connection.
display_name: StringDisplay name for authentication template.
description: StringConnector specific description for an authentication template.
Implementations§
Source§impl AuthConfigTemplate
impl AuthConfigTemplate
pub fn new() -> Self
Sourcepub fn set_auth_type<T: Into<AuthType>>(self, v: T) -> Self
pub fn set_auth_type<T: Into<AuthType>>(self, v: T) -> Self
Sets the value of auth_type.
§Example
ⓘ
use google_cloud_connectors_v1::model::AuthType;
let x0 = AuthConfigTemplate::new().set_auth_type(AuthType::UserPassword);
let x1 = AuthConfigTemplate::new().set_auth_type(AuthType::Oauth2JwtBearer);
let x2 = AuthConfigTemplate::new().set_auth_type(AuthType::Oauth2ClientCredentials);Sourcepub fn set_config_variable_templates<T, V>(self, v: T) -> Self
pub fn set_config_variable_templates<T, V>(self, v: T) -> Self
Sets the value of config_variable_templates.
§Example
ⓘ
use google_cloud_connectors_v1::model::ConfigVariableTemplate;
let x = AuthConfigTemplate::new()
.set_config_variable_templates([
ConfigVariableTemplate::default()/* use setters */,
ConfigVariableTemplate::default()/* use (different) setters */,
]);Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
§Example
ⓘ
let x = AuthConfigTemplate::new().set_display_name("example");Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
§Example
ⓘ
let x = AuthConfigTemplate::new().set_description("example");Trait Implementations§
Source§impl Clone for AuthConfigTemplate
impl Clone for AuthConfigTemplate
Source§fn clone(&self) -> AuthConfigTemplate
fn clone(&self) -> AuthConfigTemplate
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 AuthConfigTemplate
impl Debug for AuthConfigTemplate
Source§impl Default for AuthConfigTemplate
impl Default for AuthConfigTemplate
Source§fn default() -> AuthConfigTemplate
fn default() -> AuthConfigTemplate
Returns the “default value” for a type. Read more
Source§impl Message for AuthConfigTemplate
impl Message for AuthConfigTemplate
Source§impl PartialEq for AuthConfigTemplate
impl PartialEq for AuthConfigTemplate
impl StructuralPartialEq for AuthConfigTemplate
Auto Trait Implementations§
impl Freeze for AuthConfigTemplate
impl RefUnwindSafe for AuthConfigTemplate
impl Send for AuthConfigTemplate
impl Sync for AuthConfigTemplate
impl Unpin for AuthConfigTemplate
impl UnsafeUnpin for AuthConfigTemplate
impl UnwindSafe for AuthConfigTemplate
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