#[non_exhaustive]pub struct ExecutionIdentity {
pub identity: Option<Identity>,
/* private fields */
}Expand description
The identity to run the datascan.
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.identity: Option<Identity>The identity to run the datascan.
Implementations§
Source§impl ExecutionIdentity
impl ExecutionIdentity
Sourcepub fn set_identity<T: Into<Option<Identity>>>(self, v: T) -> Self
pub fn set_identity<T: Into<Option<Identity>>>(self, v: T) -> Self
Sets the value of identity.
Note that all the setters affecting identity are mutually
exclusive.
§Example
use google_cloud_dataplex_v1::model::execution_identity::DataplexServiceAgent;
let x = ExecutionIdentity::new().set_identity(Some(
google_cloud_dataplex_v1::model::execution_identity::Identity::DataplexServiceAgent(DataplexServiceAgent::default().into())));Sourcepub fn dataplex_service_agent(&self) -> Option<&Box<DataplexServiceAgent>>
pub fn dataplex_service_agent(&self) -> Option<&Box<DataplexServiceAgent>>
The value of identity
if it holds a DataplexServiceAgent, None if the field is not set or
holds a different branch.
Sourcepub fn set_dataplex_service_agent<T: Into<Box<DataplexServiceAgent>>>(
self,
v: T,
) -> Self
pub fn set_dataplex_service_agent<T: Into<Box<DataplexServiceAgent>>>( self, v: T, ) -> Self
Sets the value of identity
to hold a DataplexServiceAgent.
Note that all the setters affecting identity are
mutually exclusive.
§Example
use google_cloud_dataplex_v1::model::execution_identity::DataplexServiceAgent;
let x = ExecutionIdentity::new().set_dataplex_service_agent(DataplexServiceAgent::default()/* use setters */);
assert!(x.dataplex_service_agent().is_some());
assert!(x.user_credential().is_none());
assert!(x.service_account().is_none());Sourcepub fn user_credential(&self) -> Option<&Box<UserCredential>>
pub fn user_credential(&self) -> Option<&Box<UserCredential>>
The value of identity
if it holds a UserCredential, None if the field is not set or
holds a different branch.
Sourcepub fn set_user_credential<T: Into<Box<UserCredential>>>(self, v: T) -> Self
pub fn set_user_credential<T: Into<Box<UserCredential>>>(self, v: T) -> Self
Sets the value of identity
to hold a UserCredential.
Note that all the setters affecting identity are
mutually exclusive.
§Example
use google_cloud_dataplex_v1::model::execution_identity::UserCredential;
let x = ExecutionIdentity::new().set_user_credential(UserCredential::default()/* use setters */);
assert!(x.user_credential().is_some());
assert!(x.dataplex_service_agent().is_none());
assert!(x.service_account().is_none());Sourcepub fn service_account(&self) -> Option<&Box<ServiceAccount>>
pub fn service_account(&self) -> Option<&Box<ServiceAccount>>
The value of identity
if it holds a ServiceAccount, None if the field is not set or
holds a different branch.
Sourcepub fn set_service_account<T: Into<Box<ServiceAccount>>>(self, v: T) -> Self
pub fn set_service_account<T: Into<Box<ServiceAccount>>>(self, v: T) -> Self
Sets the value of identity
to hold a ServiceAccount.
Note that all the setters affecting identity are
mutually exclusive.
§Example
use google_cloud_dataplex_v1::model::execution_identity::ServiceAccount;
let x = ExecutionIdentity::new().set_service_account(ServiceAccount::default()/* use setters */);
assert!(x.service_account().is_some());
assert!(x.dataplex_service_agent().is_none());
assert!(x.user_credential().is_none());Trait Implementations§
Source§impl Clone for ExecutionIdentity
impl Clone for ExecutionIdentity
Source§fn clone(&self) -> ExecutionIdentity
fn clone(&self) -> ExecutionIdentity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecutionIdentity
impl Debug for ExecutionIdentity
Source§impl Default for ExecutionIdentity
impl Default for ExecutionIdentity
Source§fn default() -> ExecutionIdentity
fn default() -> ExecutionIdentity
Source§impl Message for ExecutionIdentity
impl Message for ExecutionIdentity
Source§impl PartialEq for ExecutionIdentity
impl PartialEq for ExecutionIdentity
impl StructuralPartialEq for ExecutionIdentity
Auto Trait Implementations§
impl Freeze for ExecutionIdentity
impl RefUnwindSafe for ExecutionIdentity
impl Send for ExecutionIdentity
impl Sync for ExecutionIdentity
impl Unpin for ExecutionIdentity
impl UnsafeUnpin for ExecutionIdentity
impl UnwindSafe for ExecutionIdentity
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request