pub struct InsertAutoCatArgs {Show 13 fields
pub category: Option<String>,
pub description: Option<String>,
pub description_contains: Option<String>,
pub account_contains: Option<String>,
pub institution_contains: Option<String>,
pub amount_min: Option<Amount>,
pub amount_max: Option<Amount>,
pub amount_equals: Option<Amount>,
pub description_equals: Option<String>,
pub description_full: Option<String>,
pub full_description_contains: Option<String>,
pub amount_contains: Option<String>,
pub other_fields: BTreeMap<String, String>,
}Expand description
Args for the tiller insert autocat command.
Inserts a new AutoCat rule into the local SQLite database. 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.
See tiller documentation for more information about AutoCat: https://help.tiller.com/en/articles/3792984-autocat-for-google-sheets
Fields§
§category: Option<String>The category to assign when this rule matches. This is an override column - when filter conditions match, this category value gets applied to matching transactions. Must reference an existing category name.
description: Option<String>Override column to standardize or clean up transaction descriptions. For example, replace “Seattle Starbucks store 1234” with simply “Starbucks”.
description_contains: Option<String>Filter criteria: searches the Description column for matching text (case-insensitive). Supports multiple keywords wrapped in quotes and separated by commas (OR-ed together).
account_contains: Option<String>Filter criteria: searches the Account column for matching text to narrow rule application.
institution_contains: Option<String>Filter criteria: searches the Institution column for matching text to narrow rule application.
amount_min: Option<Amount>Filter criteria: minimum transaction amount (absolute value). Use with Amount Max to set a range. For negative amounts (expenses), set Amount Polarity to “Negative”.
amount_max: Option<Amount>Filter criteria: maximum transaction amount (absolute value). Use with Amount Min to set a range. For negative amounts (expenses), set Amount Polarity to “Negative”.
amount_equals: Option<Amount>Filter criteria: exact amount to match.
description_equals: Option<String>Filter criteria: exact match for the Description column (more specific than “contains”).
description_full: Option<String>Override column for the full/raw description field.
full_description_contains: Option<String>Filter criteria: searches the Full Description column for matching text.
amount_contains: Option<String>Filter criteria: searches the Amount column as text for matching patterns.
other_fields: BTreeMap<String, String>Custom columns not part of the standard Tiller schema.
Trait Implementations§
Source§impl Args for InsertAutoCatArgs
impl Args for InsertAutoCatArgs
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for InsertAutoCatArgs
impl Clone for InsertAutoCatArgs
Source§fn clone(&self) -> InsertAutoCatArgs
fn clone(&self) -> InsertAutoCatArgs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandFactory for InsertAutoCatArgs
impl CommandFactory for InsertAutoCatArgs
Source§impl Debug for InsertAutoCatArgs
impl Debug for InsertAutoCatArgs
Source§impl<'de> Deserialize<'de> for InsertAutoCatArgs
impl<'de> Deserialize<'de> for InsertAutoCatArgs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl FromArgMatches for InsertAutoCatArgs
impl FromArgMatches for InsertAutoCatArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl JsonSchema for InsertAutoCatArgs
impl JsonSchema for InsertAutoCatArgs
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Parser for InsertAutoCatArgs
impl Parser for InsertAutoCatArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, 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 InsertAutoCatArgs
impl RefUnwindSafe for InsertAutoCatArgs
impl Send for InsertAutoCatArgs
impl Sync for InsertAutoCatArgs
impl Unpin for InsertAutoCatArgs
impl UnwindSafe for InsertAutoCatArgs
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