#[non_exhaustive]pub struct CreateSegmentInput {
pub name: Option<String>,
pub pattern: Option<String>,
pub description: Option<String>,
pub tags: Option<HashMap<String, String>>,
}
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.name: Option<String>
A name for the segment.
pattern: Option<String>
The pattern to use for the segment. For more information about pattern syntax, see Segment rule pattern syntax.
description: Option<String>
An optional description for this segment.
Assigns one or more tags (key-value pairs) to the segment.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a segment.
For more information, see Tagging Amazon Web Services resources.
Implementations§
source§impl CreateSegmentInput
impl CreateSegmentInput
sourcepub fn pattern(&self) -> Option<&str>
pub fn pattern(&self) -> Option<&str>
The pattern to use for the segment. For more information about pattern syntax, see Segment rule pattern syntax.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
An optional description for this segment.
Assigns one or more tags (key-value pairs) to the segment.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a segment.
For more information, see Tagging Amazon Web Services resources.
source§impl CreateSegmentInput
impl CreateSegmentInput
sourcepub fn builder() -> CreateSegmentInputBuilder
pub fn builder() -> CreateSegmentInputBuilder
Creates a new builder-style object to manufacture CreateSegmentInput
.
Trait Implementations§
source§impl Clone for CreateSegmentInput
impl Clone for CreateSegmentInput
source§fn clone(&self) -> CreateSegmentInput
fn clone(&self) -> CreateSegmentInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateSegmentInput
impl Debug for CreateSegmentInput
source§impl PartialEq for CreateSegmentInput
impl PartialEq for CreateSegmentInput
source§fn eq(&self, other: &CreateSegmentInput) -> bool
fn eq(&self, other: &CreateSegmentInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateSegmentInput
Auto Trait Implementations§
impl Freeze for CreateSegmentInput
impl RefUnwindSafe for CreateSegmentInput
impl Send for CreateSegmentInput
impl Sync for CreateSegmentInput
impl Unpin for CreateSegmentInput
impl UnwindSafe for CreateSegmentInput
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