Struct google_api_proto::google::cloud::alloydb::v1alpha::backup::QuantityBasedExpiry
source · pub struct QuantityBasedExpiry {
pub retention_count: i32,
pub total_retention_count: i32,
}
Expand description
A backup’s position in a quantity-based retention queue, of backups with the same source cluster and type, with length, retention, specified by the backup’s retention policy. Once the position is greater than the retention, the backup is eligible to be garbage collected.
Example: 5 backups from the same source cluster and type with a quantity-based retention of 3 and denoted by backup_id (position, retention).
Safe: backup_5 (1, 3), backup_4, (2, 3), backup_3 (3, 3). Awaiting garbage collection: backup_2 (4, 3), backup_1 (5, 3)
Fields§
§retention_count: i32
Output only. The backup’s position among its backups with the same source cluster and type, by descending chronological order create time(i.e. newest first).
total_retention_count: i32
Output only. The length of the quantity-based queue, specified by the backup’s retention policy.
Trait Implementations§
source§impl Clone for QuantityBasedExpiry
impl Clone for QuantityBasedExpiry
source§fn clone(&self) -> QuantityBasedExpiry
fn clone(&self) -> QuantityBasedExpiry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QuantityBasedExpiry
impl Debug for QuantityBasedExpiry
source§impl Default for QuantityBasedExpiry
impl Default for QuantityBasedExpiry
source§impl Message for QuantityBasedExpiry
impl Message for QuantityBasedExpiry
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for QuantityBasedExpiry
impl PartialEq for QuantityBasedExpiry
source§fn eq(&self, other: &QuantityBasedExpiry) -> bool
fn eq(&self, other: &QuantityBasedExpiry) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for QuantityBasedExpiry
impl StructuralPartialEq for QuantityBasedExpiry
Auto Trait Implementations§
impl Freeze for QuantityBasedExpiry
impl RefUnwindSafe for QuantityBasedExpiry
impl Send for QuantityBasedExpiry
impl Sync for QuantityBasedExpiry
impl Unpin for QuantityBasedExpiry
impl UnwindSafe for QuantityBasedExpiry
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
§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>
T
in a tonic::Request