pub struct BackupSpec {
pub name: String,
pub database: String,
pub volume: Option<String>,
pub destination: String,
pub schedule: String,
pub timezone: Option<String>,
pub keep: u32,
pub compression: Compression,
pub enabled: bool,
pub missed_grace: Option<String>,
}Expand description
What a user sets on a backup.
Fields§
§name: String§database: StringThe database app, or empty for a volume backup.
volume: Option<String>Or a named volume in the org (crate::volume_backup).
destination: String§schedule: StringCron (five fields or an alias).
timezone: Option<String>§keep: u32Backups kept in the bucket (older ones are deleted).
compression: Compression§enabled: bool§missed_grace: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for BackupSpec
impl Clone for BackupSpec
Source§impl Debug for BackupSpec
impl Debug for BackupSpec
Source§impl<'de> Deserialize<'de> for BackupSpec
impl<'de> Deserialize<'de> for BackupSpec
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 BackupSpec
impl PartialEq for BackupSpec
Source§impl Serialize for BackupSpec
impl Serialize for BackupSpec
impl StructuralPartialEq for BackupSpec
Auto Trait Implementations§
impl Freeze for BackupSpec
impl RefUnwindSafe for BackupSpec
impl Send for BackupSpec
impl Sync for BackupSpec
impl Unpin for BackupSpec
impl UnsafeUnpin for BackupSpec
impl UnwindSafe for BackupSpec
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