Struct google_storage1::api::BucketSoftDeletePolicy
source · pub struct BucketSoftDeletePolicy {
pub effective_time: Option<DateTime<Utc>>,
pub retention_duration_seconds: Option<i64>,
}
Expand description
The bucket’s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.
This type is not used in any activity, and only used as part of another schema.
Fields§
§effective_time: Option<DateTime<Utc>>
Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.
retention_duration_seconds: Option<i64>
The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.
Trait Implementations§
source§impl Clone for BucketSoftDeletePolicy
impl Clone for BucketSoftDeletePolicy
source§fn clone(&self) -> BucketSoftDeletePolicy
fn clone(&self) -> BucketSoftDeletePolicy
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 BucketSoftDeletePolicy
impl Debug for BucketSoftDeletePolicy
source§impl Default for BucketSoftDeletePolicy
impl Default for BucketSoftDeletePolicy
source§fn default() -> BucketSoftDeletePolicy
fn default() -> BucketSoftDeletePolicy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BucketSoftDeletePolicy
impl<'de> Deserialize<'de> for BucketSoftDeletePolicy
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 Serialize for BucketSoftDeletePolicy
impl Serialize for BucketSoftDeletePolicy
impl NestedType for BucketSoftDeletePolicy
impl Part for BucketSoftDeletePolicy
Auto Trait Implementations§
impl RefUnwindSafe for BucketSoftDeletePolicy
impl Send for BucketSoftDeletePolicy
impl Sync for BucketSoftDeletePolicy
impl Unpin for BucketSoftDeletePolicy
impl UnwindSafe for BucketSoftDeletePolicy
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