[][src]Struct google_storage1::BucketRetentionPolicy

pub struct BucketRetentionPolicy {
    pub effective_time: Option<String>,
    pub is_locked: Option<bool>,
    pub retention_period: Option<String>,
}

The bucket's retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.

This type is not used in any activity, and only used as part of another schema.

Fields

effective_time: Option<String>

Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format.

is_locked: Option<bool>

Once locked, an object retention policy cannot be modified.

retention_period: Option<String>

The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes.

Trait Implementations

impl Part for BucketRetentionPolicy[src]

impl NestedType for BucketRetentionPolicy[src]

impl Default for BucketRetentionPolicy[src]

impl Clone for BucketRetentionPolicy[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for BucketRetentionPolicy[src]

impl Serialize for BucketRetentionPolicy[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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