pub enum TransactionCommands {
Add {
account: String,
amount: String,
payee: Option<String>,
category: Option<String>,
date: Option<String>,
memo: Option<String>,
cleared: bool,
auto_categorize: bool,
},
List {
account: Option<String>,
category: Option<String>,
limit: usize,
from: Option<String>,
to: Option<String>,
status: Option<String>,
},
Show {
id: String,
},
Edit {
id: String,
amount: Option<String>,
payee: Option<String>,
category: Option<String>,
date: Option<String>,
memo: Option<String>,
},
Delete {
id: String,
force: bool,
},
Clear {
id: String,
},
Unclear {
id: String,
},
Unlock {
id: String,
},
}Expand description
Transaction subcommands
Variants§
Add
Add a new transaction
Fields
List
List transactions
Fields
Show
Show transaction details
Edit
Edit a transaction
Fields
Delete
Delete a transaction
Clear
Clear a transaction (mark as cleared)
Unclear
Unclear a transaction (mark as pending)
Unlock
Unlock a reconciled transaction for editing
Trait Implementations§
Source§impl FromArgMatches for TransactionCommands
impl FromArgMatches for TransactionCommands
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 TransactionCommands
impl Subcommand for TransactionCommands
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 TransactionCommands
impl RefUnwindSafe for TransactionCommands
impl Send for TransactionCommands
impl Sync for TransactionCommands
impl Unpin for TransactionCommands
impl UnwindSafe for TransactionCommands
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> 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