pub struct FilterConfig {Show 13 fields
pub before_time: Option<DateTime<Utc>>,
pub after_time: Option<DateTime<Utc>>,
pub include_regex: Option<Regex>,
pub exclude_regex: Option<Regex>,
pub include_content_type_regex: Option<Regex>,
pub exclude_content_type_regex: Option<Regex>,
pub include_metadata_regex: Option<Regex>,
pub exclude_metadata_regex: Option<Regex>,
pub include_tag_regex: Option<Regex>,
pub exclude_tag_regex: Option<Regex>,
pub larger_size: Option<u64>,
pub smaller_size: Option<u64>,
pub keep_latest_only: bool,
}Expand description
Filter configuration for object selection.
Adapted from s3sync’s FilterConfig, removing sync-specific filters (check_size, check_etag, etc.) and retaining deletion-relevant filters.
Fields§
§before_time: Option<DateTime<Utc>>§after_time: Option<DateTime<Utc>>§include_regex: Option<Regex>§exclude_regex: Option<Regex>§include_content_type_regex: Option<Regex>§exclude_content_type_regex: Option<Regex>§include_metadata_regex: Option<Regex>§exclude_metadata_regex: Option<Regex>§include_tag_regex: Option<Regex>§exclude_tag_regex: Option<Regex>§larger_size: Option<u64>§smaller_size: Option<u64>§keep_latest_only: boolTrait Implementations§
Source§impl Clone for FilterConfig
impl Clone for FilterConfig
Source§fn clone(&self) -> FilterConfig
fn clone(&self) -> FilterConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 FilterConfig
impl Debug for FilterConfig
Source§impl Default for FilterConfig
impl Default for FilterConfig
Source§fn default() -> FilterConfig
fn default() -> FilterConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FilterConfig
impl RefUnwindSafe for FilterConfig
impl Send for FilterConfig
impl Sync for FilterConfig
impl Unpin for FilterConfig
impl UnsafeUnpin for FilterConfig
impl UnwindSafe for FilterConfig
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
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<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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.