Struct gapi_grpc::google::cloud::sql::v1beta4::BackupRetentionSettings[][src]

pub struct BackupRetentionSettings {
    pub retention_unit: i32,
    pub retained_backups: Option<i32>,
}

We currently only support backup retention by specifying the number of backups we will retain.

Fields

retention_unit: i32

The unit that ‘retained_backups’ represents.

retained_backups: Option<i32>

Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is ‘COUNT’, we will retain this many backups.

Implementations

impl BackupRetentionSettings[src]

pub fn retention_unit(&self) -> RetentionUnit[src]

Returns the enum value of retention_unit, or the default if the field is set to an invalid enum value.

pub fn set_retention_unit(&mut self, value: RetentionUnit)[src]

Sets retention_unit to the provided enum value.

Trait Implementations

impl Clone for BackupRetentionSettings[src]

impl Debug for BackupRetentionSettings[src]

impl Default for BackupRetentionSettings[src]

impl Message for BackupRetentionSettings[src]

impl PartialEq<BackupRetentionSettings> for BackupRetentionSettings[src]

impl StructuralPartialEq for BackupRetentionSettings[src]

Auto Trait Implementations

impl RefUnwindSafe for BackupRetentionSettings

impl Send for BackupRetentionSettings

impl Sync for BackupRetentionSettings

impl Unpin for BackupRetentionSettings

impl UnwindSafe for BackupRetentionSettings

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> 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>, 
[src]

impl<T> WithSubscriber for T[src]