pub enum InsertSubcommand {
Transaction(Box<InsertTransactionArgs>),
Category(InsertCategoryArgs),
Autocat(Box<InsertAutoCatArgs>),
}Expand description
Subcommands for tiller insert.
Variants§
Transaction(Box<InsertTransactionArgs>)
Inserts a new transaction into the local SQLite database.
A unique transaction ID is automatically generated with a user- prefix to distinguish it
from Tiller-created transactions. The generated ID is returned on success.
The date and amount fields are required. All other fields are optional.
Changes are made locally only. Use sync up to upload local changes to the Google Sheet.
Category(InsertCategoryArgs)
Inserts a new category into the local SQLite database.
The category name is required and must be unique as it serves as the primary key. The name is returned on success.
Changes are made locally only. Use sync up to upload local changes to the Google Sheet.
Autocat(Box<InsertAutoCatArgs>)
Inserts a new AutoCat rule into the local SQLite database.
AutoCat rules define automatic categorization criteria for transactions. The primary key is auto-generated and returned on success.
All fields are optional - an empty rule can be created and updated later. However, a useful rule typically needs at least a category and one or more filter criteria.
Changes are made locally only. Use sync up to upload local changes to the Google Sheet.
Trait Implementations§
Source§impl Clone for InsertSubcommand
impl Clone for InsertSubcommand
Source§fn clone(&self) -> InsertSubcommand
fn clone(&self) -> InsertSubcommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InsertSubcommand
impl Debug for InsertSubcommand
Source§impl FromArgMatches for InsertSubcommand
impl FromArgMatches for InsertSubcommand
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 InsertSubcommand
impl Subcommand for InsertSubcommand
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 InsertSubcommand
impl RefUnwindSafe for InsertSubcommand
impl Send for InsertSubcommand
impl Sync for InsertSubcommand
impl Unpin for InsertSubcommand
impl UnwindSafe for InsertSubcommand
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