pub(crate) struct RewriteCmd {Show 13 fields
pub ids: Vec<String>,
pub set_label: Option<String>,
pub set_time: Option<DateTime<Local>>,
pub set_hostname: Option<String>,
pub add_tags: Vec<StringList>,
pub set_tags: Vec<StringList>,
pub remove_tags: Vec<StringList>,
pub set_description: Option<String>,
pub set_description_from: Option<PathBuf>,
pub remove_description: bool,
pub set_delete_never: bool,
pub set_delete_after: Option<Duration>,
pub remove_delete: bool,
}Expand description
rewrite subcommand
Fields§
§ids: Vec<String>Snapshots to rewrite. If none is given, use filter to filter from all snapshots.
set_label: Option<String>Set label
set_time: Option<DateTime<Local>>Set the backup time (e.g. “2021-01-21 14:15:23+0000”)
set_hostname: Option<String>Set the host name
Tags to add (can be specified multiple times)
Tag list to set (can be specified multiple times)
Tags to remove (can be specified multiple times)
set_description: Option<String>Set description
set_description_from: Option<PathBuf>Read description to set from the given file
remove_description: boolRemove description
set_delete_never: boolMark snapshot as uneraseable
set_delete_after: Option<Duration>Mark snapshot to be deleted after given duration (e.g. 10d)
remove_delete: boolRemove any delete mark
Implementations§
Source§impl RewriteCmd
impl RewriteCmd
fn inner_run(&self, repo: Repository<ProgressOptions, OpenStatus>) -> Result<()>
Trait Implementations§
Source§impl Args for RewriteCmd
impl Args for RewriteCmd
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Command for RewriteCmd
impl Command for RewriteCmd
Source§fn description() -> &'static str
fn description() -> &'static str
Description of this program
Authors of this program
Source§fn parse_args<T, I>(into_args: I) -> Self
fn parse_args<T, I>(into_args: I) -> Self
Parse command-line arguments from an iterator
Source§fn parse_env_args() -> Selfwhere
Self: Parser,
fn parse_env_args() -> Selfwhere
Self: Parser,
Parse command-line arguments from the environment
Source§impl CommandFactory for RewriteCmd
impl CommandFactory for RewriteCmd
Source§impl Debug for RewriteCmd
impl Debug for RewriteCmd
Source§impl Default for RewriteCmd
impl Default for RewriteCmd
Source§fn default() -> RewriteCmd
fn default() -> RewriteCmd
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for RewriteCmd
impl FromArgMatches for RewriteCmd
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for RewriteCmd
impl Parser for RewriteCmd
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for RewriteCmd
impl RefUnwindSafe for RewriteCmd
impl Send for RewriteCmd
impl Sync for RewriteCmd
impl Unpin for RewriteCmd
impl UnwindSafe for RewriteCmd
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more