pub enum UpdateSubcommand {
Transactions(Box<UpdateTransactionsArgs>),
Categories(UpdateCategoriesArgs),
Autocats(UpdateAutoCatsArgs),
}Expand description
Subcommands for tiller update.
Variants§
Transactions(Box<UpdateTransactionsArgs>)
Updates one or more transactions in the local SQLite database by their IDs. At least one transaction ID must be provided. When more than one ID is provided, all specified transactions are updated with the same field values.
Changes are made locally only. Use sync up to upload local changes to the Google Sheet.
Categories(UpdateCategoriesArgs)
Updates one or more categories in the local SQLite database by their names. At least one category name must be provided. When more than one name is provided, all specified categories are updated with the same field values.
Due to ON UPDATE CASCADE foreign key constraints, renaming a category automatically
updates all references in transactions and autocat rules.
Changes are made locally only. Use sync up to upload local changes to the Google Sheet.
Autocats(UpdateAutoCatsArgs)
Updates one or more AutoCat rules in the local SQLite database by their IDs. At least one ID must be provided. When more than one ID is provided, all specified rules are updated with the same field values.
Changes are made locally only. Use sync up to upload local changes to the Google Sheet.
Trait Implementations§
Source§impl Clone for UpdateSubcommand
impl Clone for UpdateSubcommand
Source§fn clone(&self) -> UpdateSubcommand
fn clone(&self) -> UpdateSubcommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateSubcommand
impl Debug for UpdateSubcommand
Source§impl FromArgMatches for UpdateSubcommand
impl FromArgMatches for UpdateSubcommand
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 UpdateSubcommand
impl Subcommand for UpdateSubcommand
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 Freeze for UpdateSubcommand
impl RefUnwindSafe for UpdateSubcommand
impl Send for UpdateSubcommand
impl Sync for UpdateSubcommand
impl Unpin for UpdateSubcommand
impl UnwindSafe for UpdateSubcommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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