pub struct BackupStatusView {
pub configured: bool,
pub backend_label: Option<String>,
pub machine: Option<String>,
pub machine_selectable: bool,
pub enrolled: Vec<String>,
pub daily: Option<ScheduleSpec>,
pub weekly: Option<ScheduleSpec>,
}Expand description
The effective backup configuration plus enrolled services
(ryra backup status).
Fields§
§configured: bool[backup] is configured (env-seeded, CLI, or manual).
backend_label: Option<String>Human label for the backend, e.g. “S3: my-bucket (…)”. None when unset.
machine: Option<String>Which machine this box backs up as: the S3 prefix (bucket/<machine>/).
None for managed (the account assigns it) or local backends.
machine_selectable: boolWhether the machine is client-selectable (true for S3/BYO; false for managed, where the account vends a fixed prefix, and for local).
enrolled: Vec<String>Services enrolled in backups (metadata.backup_enabled).
daily: Option<ScheduleSpec>Daily schedule (keep N at HH:MM), if enabled. None = no daily backups.
weekly: Option<ScheduleSpec>Weekly schedule (Sunday), if enabled. None = no weekly backups.
Trait Implementations§
Source§impl Clone for BackupStatusView
impl Clone for BackupStatusView
Source§fn clone(&self) -> BackupStatusView
fn clone(&self) -> BackupStatusView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BackupStatusView
impl Debug for BackupStatusView
Source§impl<'de> Deserialize<'de> for BackupStatusView
impl<'de> Deserialize<'de> for BackupStatusView
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
Auto Trait Implementations§
impl Freeze for BackupStatusView
impl RefUnwindSafe for BackupStatusView
impl Send for BackupStatusView
impl Sync for BackupStatusView
impl Unpin for BackupStatusView
impl UnsafeUnpin for BackupStatusView
impl UnwindSafe for BackupStatusView
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