Struct aws_sdk_customerprofiles::types::ObjectTypeKey
source · #[non_exhaustive]pub struct ObjectTypeKey {
pub standard_identifiers: Option<Vec<StandardIdentifier>>,
pub field_names: Option<Vec<String>>,
}
Expand description
An object that defines the Key element of a ProfileObject. A Key is a special element that can be used to search for a customer profile.
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.standard_identifiers: Option<Vec<StandardIdentifier>>
The types of keys that a ProfileObject can have. Each ProfileObject can have only 1 UNIQUE key but multiple PROFILE keys. PROFILE, ASSET, CASE, or ORDER means that this key can be used to tie an object to a PROFILE, ASSET, CASE, or ORDER respectively. UNIQUE means that it can be used to uniquely identify an object. If a key a is marked as SECONDARY, it will be used to search for profiles after all other PROFILE keys have been searched. A LOOKUP_ONLY key is only used to match a profile but is not persisted to be used for searching of the profile. A NEW_ONLY key is only used if the profile does not already exist before the object is ingested, otherwise it is only used for matching objects to profiles.
field_names: Option<Vec<String>>
The reference for the key name of the fields map.
Implementations§
source§impl ObjectTypeKey
impl ObjectTypeKey
sourcepub fn standard_identifiers(&self) -> &[StandardIdentifier]
pub fn standard_identifiers(&self) -> &[StandardIdentifier]
The types of keys that a ProfileObject can have. Each ProfileObject can have only 1 UNIQUE key but multiple PROFILE keys. PROFILE, ASSET, CASE, or ORDER means that this key can be used to tie an object to a PROFILE, ASSET, CASE, or ORDER respectively. UNIQUE means that it can be used to uniquely identify an object. If a key a is marked as SECONDARY, it will be used to search for profiles after all other PROFILE keys have been searched. A LOOKUP_ONLY key is only used to match a profile but is not persisted to be used for searching of the profile. A NEW_ONLY key is only used if the profile does not already exist before the object is ingested, otherwise it is only used for matching objects to profiles.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .standard_identifiers.is_none()
.
sourcepub fn field_names(&self) -> &[String]
pub fn field_names(&self) -> &[String]
The reference for the key name of the fields map.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .field_names.is_none()
.
source§impl ObjectTypeKey
impl ObjectTypeKey
sourcepub fn builder() -> ObjectTypeKeyBuilder
pub fn builder() -> ObjectTypeKeyBuilder
Creates a new builder-style object to manufacture ObjectTypeKey
.
Trait Implementations§
source§impl Clone for ObjectTypeKey
impl Clone for ObjectTypeKey
source§fn clone(&self) -> ObjectTypeKey
fn clone(&self) -> ObjectTypeKey
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ObjectTypeKey
impl Debug for ObjectTypeKey
source§impl PartialEq for ObjectTypeKey
impl PartialEq for ObjectTypeKey
source§fn eq(&self, other: &ObjectTypeKey) -> bool
fn eq(&self, other: &ObjectTypeKey) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ObjectTypeKey
Auto Trait Implementations§
impl Freeze for ObjectTypeKey
impl RefUnwindSafe for ObjectTypeKey
impl Send for ObjectTypeKey
impl Sync for ObjectTypeKey
impl Unpin for ObjectTypeKey
impl UnwindSafe for ObjectTypeKey
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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more