pub struct ReplicationFilter {
pub prefix: Option<String>,
pub tags: Vec<(String, String)>,
}Expand description
Filter on a ReplicationRule — the AND of a key-prefix predicate
and a tag predicate. AWS S3’s wire form uses a sum type
(Prefix | Tag | And { Prefix, Tags }); we collapse those into
the single representation that the in-memory matcher needs.
Fields§
§prefix: Option<String>Empty / None means “any prefix”.
AND of every tag pair — every entry here must be present in the object’s tag set for the rule to fire. Empty means “no tag predicate”.
Trait Implementations§
Source§impl Clone for ReplicationFilter
impl Clone for ReplicationFilter
Source§fn clone(&self) -> ReplicationFilter
fn clone(&self) -> ReplicationFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplicationFilter
impl Debug for ReplicationFilter
Source§impl Default for ReplicationFilter
impl Default for ReplicationFilter
Source§fn default() -> ReplicationFilter
fn default() -> ReplicationFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReplicationFilter
impl<'de> Deserialize<'de> for ReplicationFilter
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReplicationFilter
impl PartialEq for ReplicationFilter
Source§fn eq(&self, other: &ReplicationFilter) -> bool
fn eq(&self, other: &ReplicationFilter) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReplicationFilter
impl Serialize for ReplicationFilter
impl Eq for ReplicationFilter
impl StructuralPartialEq for ReplicationFilter
Auto Trait Implementations§
impl Freeze for ReplicationFilter
impl RefUnwindSafe for ReplicationFilter
impl Send for ReplicationFilter
impl Sync for ReplicationFilter
impl Unpin for ReplicationFilter
impl UnsafeUnpin for ReplicationFilter
impl UnwindSafe for ReplicationFilter
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.