Struct aws_sdk_evidently::types::Segment
source · #[non_exhaustive]pub struct Segment {
pub arn: String,
pub name: String,
pub pattern: String,
pub created_time: DateTime,
pub last_updated_time: DateTime,
pub description: Option<String>,
pub experiment_count: Option<i64>,
pub launch_count: Option<i64>,
pub tags: Option<HashMap<String, String>>,
}
Expand description
This structure contains information about one audience segment. You can use segments in your experiments and launches to narrow the user sessions used for experiment or launch to only the user sessions that match one or more criteria.
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.arn: String
The ARN of the segment.
name: String
The name of the segment.
pattern: String
The pattern that defines the attributes to use to evalute whether a user session will be in the segment. For more information about the pattern syntax, see Segment rule pattern syntax.
created_time: DateTime
The date and time that this segment was created.
last_updated_time: DateTime
The date and time that this segment was most recently updated.
description: Option<String>
The customer-created description for this segment.
experiment_count: Option<i64>
The number of experiments that this segment is used in. This count includes all current experiments, not just those that are currently running.
launch_count: Option<i64>
The number of launches that this segment is used in. This count includes all current launches, not just those that are currently running.
The list of tag keys and values associated with this launch.
Implementations§
source§impl Segment
impl Segment
sourcepub fn pattern(&self) -> &str
pub fn pattern(&self) -> &str
The pattern that defines the attributes to use to evalute whether a user session will be in the segment. For more information about the pattern syntax, see Segment rule pattern syntax.
sourcepub fn created_time(&self) -> &DateTime
pub fn created_time(&self) -> &DateTime
The date and time that this segment was created.
sourcepub fn last_updated_time(&self) -> &DateTime
pub fn last_updated_time(&self) -> &DateTime
The date and time that this segment was most recently updated.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The customer-created description for this segment.
sourcepub fn experiment_count(&self) -> Option<i64>
pub fn experiment_count(&self) -> Option<i64>
The number of experiments that this segment is used in. This count includes all current experiments, not just those that are currently running.
sourcepub fn launch_count(&self) -> Option<i64>
pub fn launch_count(&self) -> Option<i64>
The number of launches that this segment is used in. This count includes all current launches, not just those that are currently running.
The list of tag keys and values associated with this launch.
Trait Implementations§
source§impl PartialEq for Segment
impl PartialEq for Segment
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
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