Enum google_api_proto::google::cloud::alloydb::v1::automated_backup_policy::Retention
source · pub enum Retention {
TimeBasedRetention(TimeBasedRetention),
QuantityBasedRetention(QuantityBasedRetention),
}
Expand description
The retention policy for automated backups.
The retention policy for a backup is fixed at the time the backup is created. Changes to this field only apply to new backups taken with the policy; the retentions of existing backups remain unchanged.
If no retention policy is set, a default of 14 days is used.
Variants§
TimeBasedRetention(TimeBasedRetention)
Time-based Backup retention policy.
QuantityBasedRetention(QuantityBasedRetention)
Quantity-based Backup retention policy to retain recent backups.
Implementations§
source§impl Retention
impl Retention
sourcepub fn merge(
field: &mut Option<Retention>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Retention>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl PartialEq for Retention
impl PartialEq for Retention
impl Copy for Retention
impl StructuralPartialEq for Retention
Auto Trait Implementations§
impl Freeze for Retention
impl RefUnwindSafe for Retention
impl Send for Retention
impl Sync for Retention
impl Unpin for Retention
impl UnwindSafe for Retention
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request