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§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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)