Struct aws_sdk_servicediscovery::model::NamespaceFilter
source · [−]#[non_exhaustive]pub struct NamespaceFilter {
pub name: Option<NamespaceFilterName>,
pub values: Option<Vec<String>>,
pub condition: Option<FilterCondition>,
}
Expand description
A complex type that identifies the namespaces that you want to list. You can choose to list public or private namespaces.
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<NamespaceFilterName>
Specify TYPE
.
values: Option<Vec<String>>
If you specify EQ
for Condition
, specify either DNS_PUBLIC
or DNS_PRIVATE
.
If you specify IN
for Condition
, you can specify DNS_PUBLIC
, DNS_PRIVATE
, or both.
condition: Option<FilterCondition>
The operator that you want to use to determine whether ListNamespaces
returns a namespace. Valid values for condition
include:
- EQ
-
When you specify
EQ
for the condition, you can choose to list only public namespaces or private namespaces, but not both.EQ
is the default condition and can be omitted. - IN
-
When you specify
IN
for the condition, you can choose to list public namespaces, private namespaces, or both. - BETWEEN
-
Not applicable
Implementations
sourceimpl NamespaceFilter
impl NamespaceFilter
sourcepub fn name(&self) -> Option<&NamespaceFilterName>
pub fn name(&self) -> Option<&NamespaceFilterName>
Specify TYPE
.
sourcepub fn values(&self) -> Option<&[String]>
pub fn values(&self) -> Option<&[String]>
If you specify EQ
for Condition
, specify either DNS_PUBLIC
or DNS_PRIVATE
.
If you specify IN
for Condition
, you can specify DNS_PUBLIC
, DNS_PRIVATE
, or both.
sourcepub fn condition(&self) -> Option<&FilterCondition>
pub fn condition(&self) -> Option<&FilterCondition>
The operator that you want to use to determine whether ListNamespaces
returns a namespace. Valid values for condition
include:
- EQ
-
When you specify
EQ
for the condition, you can choose to list only public namespaces or private namespaces, but not both.EQ
is the default condition and can be omitted. - IN
-
When you specify
IN
for the condition, you can choose to list public namespaces, private namespaces, or both. - BETWEEN
-
Not applicable
sourceimpl NamespaceFilter
impl NamespaceFilter
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NamespaceFilter
Trait Implementations
sourceimpl Clone for NamespaceFilter
impl Clone for NamespaceFilter
sourcefn clone(&self) -> NamespaceFilter
fn clone(&self) -> NamespaceFilter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NamespaceFilter
impl Debug for NamespaceFilter
sourceimpl PartialEq<NamespaceFilter> for NamespaceFilter
impl PartialEq<NamespaceFilter> for NamespaceFilter
sourcefn eq(&self, other: &NamespaceFilter) -> bool
fn eq(&self, other: &NamespaceFilter) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NamespaceFilter) -> bool
fn ne(&self, other: &NamespaceFilter) -> bool
This method tests for !=
.
impl StructuralPartialEq for NamespaceFilter
Auto Trait Implementations
impl RefUnwindSafe for NamespaceFilter
impl Send for NamespaceFilter
impl Sync for NamespaceFilter
impl Unpin for NamespaceFilter
impl UnwindSafe for NamespaceFilter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more