Struct garage_model::bucket_table::LifecycleRule
source · pub struct LifecycleRule {
pub id: Option<String>,
pub enabled: bool,
pub filter: LifecycleFilter,
pub abort_incomplete_mpu_days: Option<usize>,
pub expiration: Option<LifecycleExpiration>,
}
Expand description
Lifecycle configuration rule
Fields§
§id: Option<String>
The ID of the rule
enabled: bool
Whether the rule is active
filter: LifecycleFilter
The filter to check whether rule applies to a given object
abort_incomplete_mpu_days: Option<usize>
Number of days after which incomplete multipart uploads are aborted
expiration: Option<LifecycleExpiration>
Expiration policy for stored objects
Trait Implementations§
source§impl Clone for LifecycleRule
impl Clone for LifecycleRule
source§fn clone(&self) -> LifecycleRule
fn clone(&self) -> LifecycleRule
Returns a copy 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 LifecycleRule
impl Debug for LifecycleRule
source§impl<'de> Deserialize<'de> for LifecycleRule
impl<'de> Deserialize<'de> for LifecycleRule
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 LifecycleRule
impl PartialEq for LifecycleRule
source§fn eq(&self, other: &LifecycleRule) -> bool
fn eq(&self, other: &LifecycleRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LifecycleRule
impl Serialize for LifecycleRule
impl Eq for LifecycleRule
impl StructuralPartialEq for LifecycleRule
Auto Trait Implementations§
impl Freeze for LifecycleRule
impl RefUnwindSafe for LifecycleRule
impl Send for LifecycleRule
impl Sync for LifecycleRule
impl Unpin for LifecycleRule
impl UnwindSafe for LifecycleRule
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<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.