#[non_exhaustive]pub struct Authentication {
pub authentication: Option<Authentication>,
/* private fields */
}Expand description
Scan authentication configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.authentication: Option<Authentication>Required. Authentication configuration
Implementations§
Source§impl Authentication
impl Authentication
pub fn new() -> Self
Sourcepub fn set_authentication<T: Into<Option<Authentication>>>(self, v: T) -> Self
pub fn set_authentication<T: Into<Option<Authentication>>>(self, v: T) -> Self
Sets the value of authentication.
Note that all the setters affecting authentication are mutually
exclusive.
§Example
use google_cloud_websecurityscanner_v1::model::scan_config::authentication::CustomAccount;
let x = Authentication::new().set_authentication(Some(
google_cloud_websecurityscanner_v1::model::scan_config::authentication::Authentication::CustomAccount(CustomAccount::default().into())));Sourcepub fn google_account(&self) -> Option<&Box<GoogleAccount>>
👎Deprecated
pub fn google_account(&self) -> Option<&Box<GoogleAccount>>
The value of authentication
if it holds a GoogleAccount, None if the field is not set or
holds a different branch.
Sourcepub fn set_google_account<T: Into<Box<GoogleAccount>>>(self, v: T) -> Self
👎Deprecated
pub fn set_google_account<T: Into<Box<GoogleAccount>>>(self, v: T) -> Self
Sets the value of authentication
to hold a GoogleAccount.
Note that all the setters affecting authentication are
mutually exclusive.
§Example
use google_cloud_websecurityscanner_v1::model::scan_config::authentication::GoogleAccount;
let x = Authentication::new().set_google_account(GoogleAccount::default()/* use setters */);
assert!(x.google_account().is_some());
assert!(x.custom_account().is_none());
assert!(x.iap_credential().is_none());Sourcepub fn custom_account(&self) -> Option<&Box<CustomAccount>>
pub fn custom_account(&self) -> Option<&Box<CustomAccount>>
The value of authentication
if it holds a CustomAccount, None if the field is not set or
holds a different branch.
Sourcepub fn set_custom_account<T: Into<Box<CustomAccount>>>(self, v: T) -> Self
pub fn set_custom_account<T: Into<Box<CustomAccount>>>(self, v: T) -> Self
Sets the value of authentication
to hold a CustomAccount.
Note that all the setters affecting authentication are
mutually exclusive.
§Example
use google_cloud_websecurityscanner_v1::model::scan_config::authentication::CustomAccount;
let x = Authentication::new().set_custom_account(CustomAccount::default()/* use setters */);
assert!(x.custom_account().is_some());
assert!(x.google_account().is_none());
assert!(x.iap_credential().is_none());Sourcepub fn iap_credential(&self) -> Option<&Box<IapCredential>>
pub fn iap_credential(&self) -> Option<&Box<IapCredential>>
The value of authentication
if it holds a IapCredential, None if the field is not set or
holds a different branch.
Sourcepub fn set_iap_credential<T: Into<Box<IapCredential>>>(self, v: T) -> Self
pub fn set_iap_credential<T: Into<Box<IapCredential>>>(self, v: T) -> Self
Sets the value of authentication
to hold a IapCredential.
Note that all the setters affecting authentication are
mutually exclusive.
§Example
use google_cloud_websecurityscanner_v1::model::scan_config::authentication::IapCredential;
let x = Authentication::new().set_iap_credential(IapCredential::default()/* use setters */);
assert!(x.iap_credential().is_some());
assert!(x.google_account().is_none());
assert!(x.custom_account().is_none());Trait Implementations§
Source§impl Clone for Authentication
impl Clone for Authentication
Source§fn clone(&self) -> Authentication
fn clone(&self) -> Authentication
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more