[][src]Struct gcp_client::google::storage::v1::bucket::RetentionPolicy

pub struct RetentionPolicy {
    pub effective_time: Option<Timestamp>,
    pub is_locked: bool,
    pub retention_period: i64,
}

Retention policy properties of a bucket.

Fields

effective_time: Option<Timestamp>

Server-determined value that indicates the time from which policy was enforced and effective. This value is in [https://tools.ietf.org/html/rfc3339][RFC 3339] format.

is_locked: bool

Once locked, an object retention policy cannot be modified.

retention_period: i64

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 Clone for RetentionPolicy[src]

impl Debug for RetentionPolicy[src]

impl Default for RetentionPolicy[src]

impl Message for RetentionPolicy[src]

impl PartialEq<RetentionPolicy> 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> 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> IntoRequest<T> for 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]