pub struct LifecycleFilter {
pub prefix: Option<String>,
pub tags: Vec<(String, String)>,
pub object_size_greater_than: Option<u64>,
pub object_size_less_than: Option<u64>,
}Expand description
Per-rule object filter. AWS S3 represents the filter as one of Prefix,
Tag, ObjectSizeGreaterThan, ObjectSizeLessThan, or And (= AND of
any subset of those predicates). For internal storage we flatten the
“And” form into a struct of optional fields plus a vector of (key, value)
tags — every present field must match (logical AND). An empty filter (all
fields None / empty tags) matches every object in the bucket.
Fields§
§prefix: Option<String>Object key prefix (empty / None = no prefix gating).
Logical AND across every entry: every (key, value) must match the object’s own tag set.
object_size_greater_than: Option<u64>Object must be strictly greater than this size in bytes.
object_size_less_than: Option<u64>Object must be strictly less than this size in bytes.
Implementations§
Trait Implementations§
Source§impl Clone for LifecycleFilter
impl Clone for LifecycleFilter
Source§fn clone(&self) -> LifecycleFilter
fn clone(&self) -> LifecycleFilter
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 LifecycleFilter
impl Debug for LifecycleFilter
Source§impl Default for LifecycleFilter
impl Default for LifecycleFilter
Source§fn default() -> LifecycleFilter
fn default() -> LifecycleFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LifecycleFilter
impl<'de> Deserialize<'de> for LifecycleFilter
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 LifecycleFilter
impl PartialEq for LifecycleFilter
Source§fn eq(&self, other: &LifecycleFilter) -> bool
fn eq(&self, other: &LifecycleFilter) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LifecycleFilter
impl Serialize for LifecycleFilter
impl Eq for LifecycleFilter
impl StructuralPartialEq for LifecycleFilter
Auto Trait Implementations§
impl Freeze for LifecycleFilter
impl RefUnwindSafe for LifecycleFilter
impl Send for LifecycleFilter
impl Sync for LifecycleFilter
impl Unpin for LifecycleFilter
impl UnsafeUnpin for LifecycleFilter
impl UnwindSafe for LifecycleFilter
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.