pub(crate) enum BackupCmd {
Etc {
initial: bool,
},
List,
DiskStatus {
source: PathBuf,
dest: PathBuf,
},
Disk {
source: PathBuf,
dest: PathBuf,
boot_sectors: bool,
force: bool,
},
Shrink {
dest: PathBuf,
force: bool,
},
Status,
}Variants§
Etc
Timestamped managed /etc backup (or –initial for protected initial_setup)
List
List timestamped /etc backups
DiskStatus
Show disk-backup readiness (always safe)
Disk
Guarded partclone eMMC partition backup (boot from SD first)
Fields
Shrink
Optional shrink-backup wrapper (tool must be on PATH)
Status
JSON status used by API / soft client
Trait Implementations§
Source§impl FromArgMatches for BackupCmd
impl FromArgMatches for BackupCmd
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for BackupCmd
impl Subcommand for BackupCmd
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for BackupCmd
impl RefUnwindSafe for BackupCmd
impl Send for BackupCmd
impl Sync for BackupCmd
impl Unpin for BackupCmd
impl UnsafeUnpin for BackupCmd
impl UnwindSafe for BackupCmd
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