pub struct VolumeSettings {
pub schedule: Option<String>,
pub timezone: Option<String>,
pub keep: u32,
pub enabled: bool,
pub missed_grace: Option<String>,
pub hook_timeout: Option<String>,
pub hook_required: bool,
}Expand description
What a user sets on a volume: its snapshot schedule and its hook.
Fields§
§schedule: Option<String>Cron for scheduled snapshots; none: no schedule.
timezone: Option<String>§keep: u32Scheduled snapshots kept (older auto- ones are deleted).
enabled: bool§missed_grace: Option<String>§hook_timeout: Option<String>How long /etc/isb/pre-snapshot may run (default 5m).
hook_required: boolA failing hook stops the snapshot (default: reported, snapshot taken).
Implementations§
Trait Implementations§
Source§impl Clone for VolumeSettings
impl Clone for VolumeSettings
Source§impl Debug for VolumeSettings
impl Debug for VolumeSettings
Source§impl Default for VolumeSettings
impl Default for VolumeSettings
Source§impl<'de> Deserialize<'de> for VolumeSettings
impl<'de> Deserialize<'de> for VolumeSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VolumeSettings
impl PartialEq for VolumeSettings
Source§impl Serialize for VolumeSettings
impl Serialize for VolumeSettings
impl StructuralPartialEq for VolumeSettings
Auto Trait Implementations§
impl Freeze for VolumeSettings
impl RefUnwindSafe for VolumeSettings
impl Send for VolumeSettings
impl Sync for VolumeSettings
impl Unpin for VolumeSettings
impl UnsafeUnpin for VolumeSettings
impl UnwindSafe for VolumeSettings
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