Struct aws_sdk_pinpoint::types::WriteSegmentRequest
source · #[non_exhaustive]pub struct WriteSegmentRequest {
pub dimensions: Option<SegmentDimensions>,
pub name: Option<String>,
pub segment_groups: Option<SegmentGroupList>,
pub tags: Option<HashMap<String, String>>,
}
Expand description
Specifies the configuration, dimension, and other settings for a segment. A WriteSegmentRequest object can include a Dimensions object or a SegmentGroups object, but not both.
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.dimensions: Option<SegmentDimensions>
The criteria that define the dimensions for the segment.
name: Option<String>
The name of the segment.
segment_groups: Option<SegmentGroupList>
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment. A segment group can consist of zero or more base segments. Your request can include only one segment group.
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) A string-to-string map of key-value pairs that defines the tags to associate with the segment. Each tag consists of a required tag key and an associated tag value.
Implementations§
source§impl WriteSegmentRequest
impl WriteSegmentRequest
sourcepub fn dimensions(&self) -> Option<&SegmentDimensions>
pub fn dimensions(&self) -> Option<&SegmentDimensions>
The criteria that define the dimensions for the segment.
sourcepub fn segment_groups(&self) -> Option<&SegmentGroupList>
pub fn segment_groups(&self) -> Option<&SegmentGroupList>
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment. A segment group can consist of zero or more base segments. Your request can include only one segment group.
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) A string-to-string map of key-value pairs that defines the tags to associate with the segment. Each tag consists of a required tag key and an associated tag value.
source§impl WriteSegmentRequest
impl WriteSegmentRequest
sourcepub fn builder() -> WriteSegmentRequestBuilder
pub fn builder() -> WriteSegmentRequestBuilder
Creates a new builder-style object to manufacture WriteSegmentRequest
.
Trait Implementations§
source§impl Clone for WriteSegmentRequest
impl Clone for WriteSegmentRequest
source§fn clone(&self) -> WriteSegmentRequest
fn clone(&self) -> WriteSegmentRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WriteSegmentRequest
impl Debug for WriteSegmentRequest
source§impl PartialEq for WriteSegmentRequest
impl PartialEq for WriteSegmentRequest
source§fn eq(&self, other: &WriteSegmentRequest) -> bool
fn eq(&self, other: &WriteSegmentRequest) -> bool
self
and other
values to be equal, and is used
by ==
.