#[non_exhaustive]pub struct HourlySchedule {
pub snapshots_to_keep: Option<f64>,
pub minute: Option<f64>,
/* private fields */
}Expand description
Make a snapshot every hour e.g. at 04:00, 05:00, 06:00.
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).
Implementations§
Source§impl HourlySchedule
impl HourlySchedule
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 = HourlySchedule::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 = HourlySchedule::new().set_or_clear_snapshots_to_keep(Some(42.0));
let x = HourlySchedule::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
Trait Implementations§
Source§impl Clone for HourlySchedule
impl Clone for HourlySchedule
Source§fn clone(&self) -> HourlySchedule
fn clone(&self) -> HourlySchedule
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 HourlySchedule
impl Debug for HourlySchedule
Source§impl Default for HourlySchedule
impl Default for HourlySchedule
Source§fn default() -> HourlySchedule
fn default() -> HourlySchedule
Returns the “default value” for a type. Read more
Source§impl Message for HourlySchedule
impl Message for HourlySchedule
Source§impl PartialEq for HourlySchedule
impl PartialEq for HourlySchedule
impl StructuralPartialEq for HourlySchedule
Auto Trait Implementations§
impl Freeze for HourlySchedule
impl RefUnwindSafe for HourlySchedule
impl Send for HourlySchedule
impl Sync for HourlySchedule
impl Unpin for HourlySchedule
impl UnsafeUnpin for HourlySchedule
impl UnwindSafe for HourlySchedule
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