pub struct AutoCatUpdates {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
The fields to update in an AutoCat rule. Only set values will be changed, unset values will not be changed.
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.
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 AutoCatUpdates
impl Args for AutoCatUpdates
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 AutoCatUpdates
impl Clone for AutoCatUpdates
Source§fn clone(&self) -> AutoCatUpdates
fn clone(&self) -> AutoCatUpdates
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandFactory for AutoCatUpdates
impl CommandFactory for AutoCatUpdates
Source§impl Debug for AutoCatUpdates
impl Debug for AutoCatUpdates
Source§impl Default for AutoCatUpdates
impl Default for AutoCatUpdates
Source§fn default() -> AutoCatUpdates
fn default() -> AutoCatUpdates
Source§impl<'de> Deserialize<'de> for AutoCatUpdates
impl<'de> Deserialize<'de> for AutoCatUpdates
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 AutoCatUpdates
impl FromArgMatches for AutoCatUpdates
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 AutoCatUpdates
impl JsonSchema for AutoCatUpdates
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 AutoCatUpdates
impl Parser for AutoCatUpdates
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 AutoCatUpdates
impl RefUnwindSafe for AutoCatUpdates
impl Send for AutoCatUpdates
impl Sync for AutoCatUpdates
impl Unpin for AutoCatUpdates
impl UnwindSafe for AutoCatUpdates
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