Struct aws_sdk_datasync::types::LocationFilter
source · #[non_exhaustive]pub struct LocationFilter {
pub name: LocationFilterName,
pub values: Vec<String>,
pub operator: Operator,
}
Expand description
Narrow down the list of resources returned by ListLocations
. For example, to see all your Amazon S3 locations, create a filter using "Name": "LocationType"
, "Operator": "Equals"
, and "Values": "S3"
.
For more information, see filtering resources.
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: LocationFilterName
The name of the filter being used. Each API call supports a list of filters that are available for it (for example, LocationType
for ListLocations
).
values: Vec<String>
The values that you want to filter for. For example, you might want to display only Amazon S3 locations.
operator: Operator
The operator that is used to compare filter values (for example, Equals
or Contains
).
Implementations§
source§impl LocationFilter
impl LocationFilter
sourcepub fn name(&self) -> &LocationFilterName
pub fn name(&self) -> &LocationFilterName
The name of the filter being used. Each API call supports a list of filters that are available for it (for example, LocationType
for ListLocations
).
source§impl LocationFilter
impl LocationFilter
sourcepub fn builder() -> LocationFilterBuilder
pub fn builder() -> LocationFilterBuilder
Creates a new builder-style object to manufacture LocationFilter
.
Trait Implementations§
source§impl Clone for LocationFilter
impl Clone for LocationFilter
source§fn clone(&self) -> LocationFilter
fn clone(&self) -> LocationFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocationFilter
impl Debug for LocationFilter
source§impl PartialEq for LocationFilter
impl PartialEq for LocationFilter
source§fn eq(&self, other: &LocationFilter) -> bool
fn eq(&self, other: &LocationFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LocationFilter
Auto Trait Implementations§
impl Freeze for LocationFilter
impl RefUnwindSafe for LocationFilter
impl Send for LocationFilter
impl Sync for LocationFilter
impl Unpin for LocationFilter
impl UnwindSafe for LocationFilter
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