pub enum BackupCommand {
New {
folder: PathBuf,
name: Option<String>,
spaces: Vec<String>,
policies: Vec<String>,
away: bool,
waits: Option<Waits>,
},
List,
Update {
backup: Option<String>,
at: Option<PathBuf>,
},
Edit {
backup: String,
name: Option<String>,
spaces: Vec<String>,
policies: Vec<String>,
every_policy: bool,
away: bool,
home: bool,
waits: Option<Waits>,
},
Remove {
backup: String,
},
}Expand description
What nib backup can do.
Variants§
New
Makes a backup in a folder, such as on a USB drive.
The folder, new or empty, is updated now. While nib sync –serve, syncing from login or an app runs, your computers then update it whenever they find it.
Fields
spaces: Vec<String>A space that it holds, by its name or the start of its ID; give it once for each. Every space of the library by default.
List
Lists your backups, with what they hold and still have to check.
Each comes with where this computer finds it, how many updates it has had and files it holds, how much of it is still to check, and how many copies were found damaged lately.
Update
Updates a backup now, or each that this computer finds.
An update takes in what this device lacks, writes what the backup lacks, and checks its files.
Fields
Edit
Changes a backup: its name, spaces, policies, and where it is kept.
It is kept at home or away. Taking a space or a policy off stops writing it; what the backup holds of it stays.
Fields
Remove
Forgets a backup, whose folder stays for you to delete.
Your computers stop updating it.
Trait Implementations§
Source§impl Debug for BackupCommand
impl Debug for BackupCommand
Source§impl FromArgMatches for BackupCommand
impl FromArgMatches for BackupCommand
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>
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>
ArgMatches to self.Source§impl Subcommand for BackupCommand
impl Subcommand for BackupCommand
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
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
Self can parse a specific subcommandAuto Trait Implementations§
impl Forget for BackupCommand
impl Freeze for BackupCommand
impl Move for BackupCommand
impl RefUnwindSafe for BackupCommand
impl Send for BackupCommand
impl Sync for BackupCommand
impl Unpin for BackupCommand
impl UnsafeUnpin for BackupCommand
impl UnwindSafe for BackupCommand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.