Struct google_api_proto::google::cloud::redis::v1beta1::PersistenceConfig
source · pub struct PersistenceConfig {
pub persistence_mode: i32,
pub rdb_snapshot_period: i32,
pub rdb_next_snapshot_time: Option<Timestamp>,
pub rdb_snapshot_start_time: Option<Timestamp>,
}
Expand description
Configuration of the persistence functionality.
Fields§
§persistence_mode: i32
Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.
rdb_snapshot_period: i32
Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from the provided snapshot start time. For example, a start time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used as default.
rdb_next_snapshot_time: Option<Timestamp>
Output only. The next time that a snapshot attempt is scheduled to occur.
rdb_snapshot_start_time: Option<Timestamp>
Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
Implementations§
source§impl PersistenceConfig
impl PersistenceConfig
sourcepub fn persistence_mode(&self) -> PersistenceMode
pub fn persistence_mode(&self) -> PersistenceMode
Returns the enum value of persistence_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_persistence_mode(&mut self, value: PersistenceMode)
pub fn set_persistence_mode(&mut self, value: PersistenceMode)
Sets persistence_mode
to the provided enum value.
sourcepub fn rdb_snapshot_period(&self) -> SnapshotPeriod
pub fn rdb_snapshot_period(&self) -> SnapshotPeriod
Returns the enum value of rdb_snapshot_period
, or the default if the field is set to an invalid enum value.
sourcepub fn set_rdb_snapshot_period(&mut self, value: SnapshotPeriod)
pub fn set_rdb_snapshot_period(&mut self, value: SnapshotPeriod)
Sets rdb_snapshot_period
to the provided enum value.
Trait Implementations§
source§impl Clone for PersistenceConfig
impl Clone for PersistenceConfig
source§fn clone(&self) -> PersistenceConfig
fn clone(&self) -> PersistenceConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PersistenceConfig
impl Debug for PersistenceConfig
source§impl Default for PersistenceConfig
impl Default for PersistenceConfig
source§impl Message for PersistenceConfig
impl Message for PersistenceConfig
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 PersistenceConfig
impl PartialEq for PersistenceConfig
source§fn eq(&self, other: &PersistenceConfig) -> bool
fn eq(&self, other: &PersistenceConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for PersistenceConfig
impl StructuralPartialEq for PersistenceConfig
Auto Trait Implementations§
impl Freeze for PersistenceConfig
impl RefUnwindSafe for PersistenceConfig
impl Send for PersistenceConfig
impl Sync for PersistenceConfig
impl Unpin for PersistenceConfig
impl UnwindSafe for PersistenceConfig
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