pub struct ReplicationRule {
pub id: String,
pub priority: u32,
pub status_enabled: bool,
pub filter: ReplicationFilter,
pub destination_bucket: String,
pub destination_storage_class: Option<String>,
}Expand description
One replication rule. Each rule independently decides whether to copy an object based on the (key, tags) tuple; the replication manager picks the highest-priority matching rule when multiple fire on the same object.
Fields§
§id: StringOperator-supplied id (max 255 chars per AWS).
priority: u32Higher number = higher priority (S3 spec). When two rules match
the same key, the higher priority wins; ties broken by
declaration order.
status_enabled: boolfalse makes the rule inert without removing it from the
configuration document — mirrors AWS’s Disabled status.
filter: ReplicationFilterSubset of source-bucket objects this rule applies to.
destination_bucket: StringWhere to copy matching objects. Plain bucket name (no ARN) for the v0.6 #40 single-instance scope.
destination_storage_class: Option<String>Optional storage-class override on the replica. None = keep
the source’s class (S3 default).
Trait Implementations§
Source§impl Clone for ReplicationRule
impl Clone for ReplicationRule
Source§fn clone(&self) -> ReplicationRule
fn clone(&self) -> ReplicationRule
1.0.0 (const: unstable) · 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<'de> Deserialize<'de> for ReplicationRule
impl<'de> Deserialize<'de> for ReplicationRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 ==.Source§impl Serialize for ReplicationRule
impl Serialize for ReplicationRule
impl Eq for ReplicationRule
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 UnsafeUnpin for ReplicationRule
impl UnwindSafe for ReplicationRule
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.