Struct google_api_proto::google::spanner::admin::database::v1::CrontabSpec
source · pub struct CrontabSpec {
pub text: String,
pub time_zone: String,
pub creation_window: Option<Duration>,
}
Expand description
CrontabSpec can be used to specify the version time and frequency at which the backup should be created.
Fields§
§text: String
Required. Textual representation of the crontab. User can customize the backup frequency and the backup version time using the cron expression. The version time must be in UTC timzeone.
The backup will contain an externally consistent copy of the database at the version time. Allowed frequencies are 12 hour, 1 day, 1 week and 1 month. Examples of valid cron specifications:
0 2/12 * * *
: every 12 hours at (2, 14) hours past midnight in UTC.0 2,14 * * *
: every 12 hours at (2,14) hours past midnight in UTC.0 2 * * *
: once a day at 2 past midnight in UTC.0 2 * * 0
: once a week every Sunday at 2 past midnight in UTC.0 2 8 * *
: once a month on 8th day at 2 past midnight in UTC.
time_zone: String
Output only. The time zone of the times in CrontabSpec.text
. Currently
only UTC is supported.
creation_window: Option<Duration>
Output only. Schedule backups will contain an externally consistent copy
of the database at the version time specified in
schedule_spec.cron_spec
. However, Spanner may not initiate the creation
of the scheduled backups at that version time. Spanner will initiate
the creation of scheduled backups within the time window bounded by the
version_time specified in schedule_spec.cron_spec
and version_time +
creation_window
.
Trait Implementations§
source§impl Clone for CrontabSpec
impl Clone for CrontabSpec
source§fn clone(&self) -> CrontabSpec
fn clone(&self) -> CrontabSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CrontabSpec
impl Debug for CrontabSpec
source§impl Default for CrontabSpec
impl Default for CrontabSpec
source§impl Message for CrontabSpec
impl Message for CrontabSpec
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 CrontabSpec
impl PartialEq for CrontabSpec
source§fn eq(&self, other: &CrontabSpec) -> bool
fn eq(&self, other: &CrontabSpec) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CrontabSpec
Auto Trait Implementations§
impl Freeze for CrontabSpec
impl RefUnwindSafe for CrontabSpec
impl Send for CrontabSpec
impl Sync for CrontabSpec
impl Unpin for CrontabSpec
impl UnwindSafe for CrontabSpec
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