pub struct InsertCategoryArgs {
pub name: String,
pub group: Option<String>,
pub type: Option<String>,
pub hide_from_reports: Option<String>,
pub other_fields: BTreeMap<String, String>,
}Expand description
Args for the tiller insert category command.
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.
Changes are made locally only. Use sync up to upload local changes to the Google Sheet.
See tiller documentation for more information about the Categories sheet: https://help.tiller.com/en/articles/432680-categories-sheet
Fields§
§name: StringThe name of the category. This is the primary key and must be unique. Required.
group: Option<String>The group this category belongs to. Groups organize related categories together for reporting purposes (e.g., “Food”, “Transportation”, “Housing”). All categories should have a Group assigned.
type: Option<String>The type classification for this category. Common types include “Expense”, “Income”, and “Transfer”. All categories should have a Type assigned.
hide_from_reports: Option<String>Controls visibility in reports. Set to “Hide” to exclude this category from reports. This is useful for categories like credit card payments or internal transfers that you don’t want appearing in spending reports.
other_fields: BTreeMap<String, String>Custom columns not part of the standard Tiller schema.
Trait Implementations§
Source§impl Args for InsertCategoryArgs
impl Args for InsertCategoryArgs
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 InsertCategoryArgs
impl Clone for InsertCategoryArgs
Source§fn clone(&self) -> InsertCategoryArgs
fn clone(&self) -> InsertCategoryArgs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandFactory for InsertCategoryArgs
impl CommandFactory for InsertCategoryArgs
Source§impl Debug for InsertCategoryArgs
impl Debug for InsertCategoryArgs
Source§impl<'de> Deserialize<'de> for InsertCategoryArgs
impl<'de> Deserialize<'de> for InsertCategoryArgs
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 InsertCategoryArgs
impl FromArgMatches for InsertCategoryArgs
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 InsertCategoryArgs
impl JsonSchema for InsertCategoryArgs
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 InsertCategoryArgs
impl Parser for InsertCategoryArgs
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 InsertCategoryArgs
impl RefUnwindSafe for InsertCategoryArgs
impl Send for InsertCategoryArgs
impl Sync for InsertCategoryArgs
impl Unpin for InsertCategoryArgs
impl UnwindSafe for InsertCategoryArgs
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