Struct aws_sdk_ecr::types::ReplicationRule
source · #[non_exhaustive]pub struct ReplicationRule {
pub destinations: Vec<ReplicationDestination>,
pub repository_filters: Option<Vec<RepositoryFilter>>,
}
Expand description
An array of objects representing the replication destinations and repository filters for a replication configuration.
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.destinations: Vec<ReplicationDestination>
An array of objects representing the destination for a replication rule.
repository_filters: Option<Vec<RepositoryFilter>>
An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
Implementations§
source§impl ReplicationRule
impl ReplicationRule
sourcepub fn destinations(&self) -> &[ReplicationDestination]
pub fn destinations(&self) -> &[ReplicationDestination]
An array of objects representing the destination for a replication rule.
sourcepub fn repository_filters(&self) -> &[RepositoryFilter]
pub fn repository_filters(&self) -> &[RepositoryFilter]
An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .repository_filters.is_none()
.
source§impl ReplicationRule
impl ReplicationRule
sourcepub fn builder() -> ReplicationRuleBuilder
pub fn builder() -> ReplicationRuleBuilder
Creates a new builder-style object to manufacture ReplicationRule
.
Trait Implementations§
source§impl Clone for ReplicationRule
impl Clone for ReplicationRule
source§fn clone(&self) -> ReplicationRule
fn clone(&self) -> ReplicationRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReplicationRule
impl Debug for ReplicationRule
source§impl PartialEq for ReplicationRule
impl PartialEq for ReplicationRule
source§fn eq(&self, other: &ReplicationRule) -> bool
fn eq(&self, other: &ReplicationRule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReplicationRule
Auto Trait Implementations§
impl Freeze for ReplicationRule
impl RefUnwindSafe for ReplicationRule
impl Send for ReplicationRule
impl Sync for ReplicationRule
impl Unpin for ReplicationRule
impl UnwindSafe for ReplicationRule
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