#[non_exhaustive]pub struct BackupScheduleSpec {
pub schedule_spec: Option<ScheduleSpec>,
/* private fields */
}Expand description
Defines specifications of the backup schedule.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.schedule_spec: Option<ScheduleSpec>Required.
Implementations§
Source§impl BackupScheduleSpec
impl BackupScheduleSpec
pub fn new() -> Self
Sourcepub fn set_schedule_spec<T: Into<Option<ScheduleSpec>>>(self, v: T) -> Self
pub fn set_schedule_spec<T: Into<Option<ScheduleSpec>>>(self, v: T) -> Self
Sets the value of schedule_spec.
Note that all the setters affecting schedule_spec are mutually
exclusive.
Sourcepub fn cron_spec(&self) -> Option<&Box<CrontabSpec>>
pub fn cron_spec(&self) -> Option<&Box<CrontabSpec>>
The value of schedule_spec
if it holds a CronSpec, None if the field is not set or
holds a different branch.
Sourcepub fn set_cron_spec<T: Into<Box<CrontabSpec>>>(self, v: T) -> Self
pub fn set_cron_spec<T: Into<Box<CrontabSpec>>>(self, v: T) -> Self
Sets the value of schedule_spec
to hold a CronSpec.
Note that all the setters affecting schedule_spec are
mutually exclusive.
Trait Implementations§
Source§impl Clone for BackupScheduleSpec
impl Clone for BackupScheduleSpec
Source§fn clone(&self) -> BackupScheduleSpec
fn clone(&self) -> BackupScheduleSpec
Returns a duplicate 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 BackupScheduleSpec
impl Debug for BackupScheduleSpec
Source§impl Default for BackupScheduleSpec
impl Default for BackupScheduleSpec
Source§fn default() -> BackupScheduleSpec
fn default() -> BackupScheduleSpec
Returns the “default value” for a type. Read more
Source§impl Message for BackupScheduleSpec
impl Message for BackupScheduleSpec
Source§impl PartialEq for BackupScheduleSpec
impl PartialEq for BackupScheduleSpec
impl StructuralPartialEq for BackupScheduleSpec
Auto Trait Implementations§
impl Freeze for BackupScheduleSpec
impl RefUnwindSafe for BackupScheduleSpec
impl Send for BackupScheduleSpec
impl Sync for BackupScheduleSpec
impl Unpin for BackupScheduleSpec
impl UnwindSafe for BackupScheduleSpec
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