#[non_exhaustive]pub struct ImportIdentityMappingsRequest {
pub identity_mapping_store: String,
pub source: Option<Source>,
/* private fields */
}Available on crate feature
identity-mapping-store-service only.Expand description
Request message for IdentityMappingStoreService.ImportIdentityMappings
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.identity_mapping_store: StringRequired. The name of the Identity Mapping Store to import Identity Mapping
Entries to. Format:
projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}
source: Option<Source>The source of the input.
Implementations§
Source§impl ImportIdentityMappingsRequest
impl ImportIdentityMappingsRequest
pub fn new() -> Self
Sourcepub fn set_identity_mapping_store<T: Into<String>>(self, v: T) -> Self
pub fn set_identity_mapping_store<T: Into<String>>(self, v: T) -> Self
Sets the value of identity_mapping_store.
§Example
ⓘ
let x = ImportIdentityMappingsRequest::new().set_identity_mapping_store("example");Sourcepub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Sets the value of source.
Note that all the setters affecting source are mutually
exclusive.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::import_identity_mappings_request::InlineSource;
let x = ImportIdentityMappingsRequest::new().set_source(Some(
google_cloud_discoveryengine_v1::model::import_identity_mappings_request::Source::InlineSource(InlineSource::default().into())));Sourcepub fn inline_source(&self) -> Option<&Box<InlineSource>>
pub fn inline_source(&self) -> Option<&Box<InlineSource>>
The value of source
if it holds a InlineSource, None if the field is not set or
holds a different branch.
Sourcepub fn set_inline_source<T: Into<Box<InlineSource>>>(self, v: T) -> Self
pub fn set_inline_source<T: Into<Box<InlineSource>>>(self, v: T) -> Self
Sets the value of source
to hold a InlineSource.
Note that all the setters affecting source are
mutually exclusive.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::import_identity_mappings_request::InlineSource;
let x = ImportIdentityMappingsRequest::new().set_inline_source(InlineSource::default()/* use setters */);
assert!(x.inline_source().is_some());Trait Implementations§
Source§impl Clone for ImportIdentityMappingsRequest
impl Clone for ImportIdentityMappingsRequest
Source§fn clone(&self) -> ImportIdentityMappingsRequest
fn clone(&self) -> ImportIdentityMappingsRequest
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 ImportIdentityMappingsRequest
impl Default for ImportIdentityMappingsRequest
Source§fn default() -> ImportIdentityMappingsRequest
fn default() -> ImportIdentityMappingsRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImportIdentityMappingsRequest
impl PartialEq for ImportIdentityMappingsRequest
Source§fn eq(&self, other: &ImportIdentityMappingsRequest) -> bool
fn eq(&self, other: &ImportIdentityMappingsRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImportIdentityMappingsRequest
Auto Trait Implementations§
impl Freeze for ImportIdentityMappingsRequest
impl RefUnwindSafe for ImportIdentityMappingsRequest
impl Send for ImportIdentityMappingsRequest
impl Sync for ImportIdentityMappingsRequest
impl Unpin for ImportIdentityMappingsRequest
impl UnwindSafe for ImportIdentityMappingsRequest
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