pub struct Job {
pub id: u32,
pub source: PathBuf,
pub target: PathBuf,
pub compression: Option<CompressFormat>,
pub level: Option<Level>,
pub ignore: Option<Vec<String>>,
pub model: Option<BackupModel>,
}Expand description
Represents a single backup job with a unique id, source, target, and optional compression.
Fields§
§id: u32Unique job id.
source: PathBufSource file or directory path.
target: PathBufTarget file or directory path.
compression: Option<CompressFormat>Optional compression format for this job.
level: Option<Level>Optional compression level for this job.
ignore: Option<Vec<String>>Optional ignore list
model: Option<BackupModel>Backup model
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
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 Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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