Struct cloud_storage::bucket::RetentionPolicy[][src]

pub struct RetentionPolicy {
    pub retention_period: u64,
    pub effective_time: DateTime<Utc>,
    pub is_locked: Option<bool>,
}

Contains information about how files are kept after deletion.

Fields

retention_period: u64

The period of time, in seconds, that objects in the bucket must be retained and cannot be deleted, overwritten, or made noncurrent. The value must be greater than 0 seconds and less than 3,155,760,000 seconds.

effective_time: DateTime<Utc>

The time from which the retentionPolicy was effective, in RFC 3339 format.

is_locked: Option<bool>

Whether or not the retentionPolicy is locked. If true, the retentionPolicy cannot be removed and the retention period cannot be reduced.

Trait Implementations

impl Debug for RetentionPolicy[src]

impl<'de> Deserialize<'de> for RetentionPolicy[src]

impl PartialEq<RetentionPolicy> for RetentionPolicy[src]

impl Serialize for RetentionPolicy[src]

impl StructuralPartialEq for RetentionPolicy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.