pub struct S3LifecycleObjectSizes(pub Option<u32>, pub Option<u32>);Expand description
Configuration for object size constraints in S3 lifecycle rules, specified in bytes.
This wrapper defines minimum and maximum object sizes for S3 lifecycle transitions. It allows you to apply lifecycle rules only to objects within a specific size range.
§Structure
- First value: Minimum object size (optional)
- Second value: Maximum object size (optional)
- Both values are in bytes
§Validation Rules (when using the macro)
- If both values are provided, the first must be smaller than the second
- Values represent object sizes in bytes
§Recommended Usage
Use the lifecycle_object_sizes! macro from rusty-cdk-macros for compile-time validation:
use rusty_cdk_core::wrappers::S3LifecycleObjectSizes;
use rusty_cdk_macros::lifecycle_object_sizes;
let sizes = lifecycle_object_sizes!(1024,10485760);
let max_only = lifecycle_object_sizes!(5242880);Tuple Fields§
§0: Option<u32>§1: Option<u32>Trait Implementations§
Source§impl Clone for S3LifecycleObjectSizes
impl Clone for S3LifecycleObjectSizes
Source§fn clone(&self) -> S3LifecycleObjectSizes
fn clone(&self) -> S3LifecycleObjectSizes
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 moreAuto Trait Implementations§
impl Freeze for S3LifecycleObjectSizes
impl RefUnwindSafe for S3LifecycleObjectSizes
impl Send for S3LifecycleObjectSizes
impl Sync for S3LifecycleObjectSizes
impl Unpin for S3LifecycleObjectSizes
impl UnwindSafe for S3LifecycleObjectSizes
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.