pub struct ServiceBackupConfig {
pub enabled: bool,
pub pre_hook: Option<String>,
}Expand description
Per-service backup settings.
Fields§
§enabled: boolWhether backups are enabled for this service.
pre_hook: Option<String>Command to run before backup (e.g. “pg_dump -U postgres mydb > /tmp/dump.sql”).
Trait Implementations§
Source§impl Clone for ServiceBackupConfig
impl Clone for ServiceBackupConfig
Source§fn clone(&self) -> ServiceBackupConfig
fn clone(&self) -> ServiceBackupConfig
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 ServiceBackupConfig
impl Debug for ServiceBackupConfig
Source§impl<'de> Deserialize<'de> for ServiceBackupConfig
impl<'de> Deserialize<'de> for ServiceBackupConfig
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 ServiceBackupConfig
impl RefUnwindSafe for ServiceBackupConfig
impl Send for ServiceBackupConfig
impl Sync for ServiceBackupConfig
impl Unpin for ServiceBackupConfig
impl UnsafeUnpin for ServiceBackupConfig
impl UnwindSafe for ServiceBackupConfig
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