Struct google_api_proto::google::cloud::gkebackup::logging::v1::LoggedBackup
source · pub struct LoggedBackup {
pub labels: BTreeMap<String, String>,
pub delete_lock_days: i32,
pub retain_days: i32,
pub description: String,
pub state: i32,
pub state_reason: String,
}
Expand description
Backup as stored in Platform log. It’s used to log the details of a createBackup/updateBackup request, so only fields that can be taken from API calls are included here.
Fields§
§labels: BTreeMap<String, String>
A set of custom labels supplied by user.
delete_lock_days: i32
delete_lock_days specifies the number of days from the create_time of this Backup before which deletion will be blocked.
retain_days: i32
retain_days specifies the desired number of days from the create_time of this Backup after which it will be automatically deleted.
description: String
User specified descriptive string for this Backup.
state: i32
Current state of the Backup
state_reason: String
Human-readable description of why the backup is in the current state
.
Implementations§
Trait Implementations§
source§impl Clone for LoggedBackup
impl Clone for LoggedBackup
source§fn clone(&self) -> LoggedBackup
fn clone(&self) -> LoggedBackup
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 LoggedBackup
impl Debug for LoggedBackup
source§impl Default for LoggedBackup
impl Default for LoggedBackup
source§impl Message for LoggedBackup
impl Message for LoggedBackup
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for LoggedBackup
impl PartialEq for LoggedBackup
source§fn eq(&self, other: &LoggedBackup) -> bool
fn eq(&self, other: &LoggedBackup) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LoggedBackup
Auto Trait Implementations§
impl Freeze for LoggedBackup
impl RefUnwindSafe for LoggedBackup
impl Send for LoggedBackup
impl Sync for LoggedBackup
impl Unpin for LoggedBackup
impl UnwindSafe for LoggedBackup
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