#[non_exhaustive]pub struct DailySchedule {
pub snapshots_to_keep: Option<f64>,
pub minute: Option<f64>,
pub hour: Option<f64>,
/* private fields */
}Expand description
Make a snapshot every day e.g. at 04:00, 05:20, 23:50
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.snapshots_to_keep: Option<f64>The maximum number of Snapshots to keep for the hourly schedule
minute: Option<f64>Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
hour: Option<f64>Set the hour to start the snapshot (0-23), defaults to midnight (0).
Implementations§
Source§impl DailySchedule
impl DailySchedule
pub fn new() -> Self
Sourcepub fn set_snapshots_to_keep<T>(self, v: T) -> Self
pub fn set_snapshots_to_keep<T>(self, v: T) -> Self
Sets the value of snapshots_to_keep.
§Example
ⓘ
let x = DailySchedule::new().set_snapshots_to_keep(42.0);Sourcepub fn set_or_clear_snapshots_to_keep<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_snapshots_to_keep<T>(self, v: Option<T>) -> Self
Sets or clears the value of snapshots_to_keep.
§Example
ⓘ
let x = DailySchedule::new().set_or_clear_snapshots_to_keep(Some(42.0));
let x = DailySchedule::new().set_or_clear_snapshots_to_keep(None::<f32>);Sourcepub fn set_minute<T>(self, v: T) -> Self
pub fn set_minute<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_minute<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_minute<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for DailySchedule
impl Clone for DailySchedule
Source§fn clone(&self) -> DailySchedule
fn clone(&self) -> DailySchedule
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 DailySchedule
impl Debug for DailySchedule
Source§impl Default for DailySchedule
impl Default for DailySchedule
Source§fn default() -> DailySchedule
fn default() -> DailySchedule
Returns the “default value” for a type. Read more
Source§impl Message for DailySchedule
impl Message for DailySchedule
Source§impl PartialEq for DailySchedule
impl PartialEq for DailySchedule
impl StructuralPartialEq for DailySchedule
Auto Trait Implementations§
impl Freeze for DailySchedule
impl RefUnwindSafe for DailySchedule
impl Send for DailySchedule
impl Sync for DailySchedule
impl Unpin for DailySchedule
impl UnsafeUnpin for DailySchedule
impl UnwindSafe for DailySchedule
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