Struct aws_sdk_pinpoint::types::SetDimension
source · #[non_exhaustive]pub struct SetDimension {
pub dimension_type: Option<DimensionType>,
pub values: Option<Vec<String>>,
}
Expand description
Specifies the dimension type and values for a segment dimension.
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.dimension_type: Option<DimensionType>
The type of segment dimension to use. Valid values are: INCLUSIVE, endpoints that match the criteria are included in the segment; and, EXCLUSIVE, endpoints that match the criteria are excluded from the segment.
values: Option<Vec<String>>
The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Implementations§
source§impl SetDimension
impl SetDimension
sourcepub fn dimension_type(&self) -> Option<&DimensionType>
pub fn dimension_type(&self) -> Option<&DimensionType>
The type of segment dimension to use. Valid values are: INCLUSIVE, endpoints that match the criteria are included in the segment; and, EXCLUSIVE, endpoints that match the criteria are excluded from the segment.
sourcepub fn values(&self) -> &[String]
pub fn values(&self) -> &[String]
The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .values.is_none()
.
source§impl SetDimension
impl SetDimension
sourcepub fn builder() -> SetDimensionBuilder
pub fn builder() -> SetDimensionBuilder
Creates a new builder-style object to manufacture SetDimension
.
Trait Implementations§
source§impl Clone for SetDimension
impl Clone for SetDimension
source§fn clone(&self) -> SetDimension
fn clone(&self) -> SetDimension
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetDimension
impl Debug for SetDimension
source§impl PartialEq for SetDimension
impl PartialEq for SetDimension
source§fn eq(&self, other: &SetDimension) -> bool
fn eq(&self, other: &SetDimension) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SetDimension
Auto Trait Implementations§
impl Freeze for SetDimension
impl RefUnwindSafe for SetDimension
impl Send for SetDimension
impl Sync for SetDimension
impl Unpin for SetDimension
impl UnwindSafe for SetDimension
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