pub struct CategoryUpdates {
pub category: Option<String>,
pub group: Option<String>,
pub type: Option<String>,
pub hide_from_reports: Option<String>,
pub other_fields: BTreeMap<String, String>,
}Expand description
The fields to update in a category row. Only set values will be changed, unset values will not be changed.
See tiller documentation for more information about the Categories sheet: https://help.tiller.com/en/articles/3250769-customizing-categories
Fields§
§category: Option<String>The new name for the category. Use this to rename a category. Due to ON UPDATE CASCADE
foreign key constraints, renaming a category automatically updates all references in
transactions and autocat rules.
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 CategoryUpdates
impl Args for CategoryUpdates
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 CategoryUpdates
impl Clone for CategoryUpdates
Source§fn clone(&self) -> CategoryUpdates
fn clone(&self) -> CategoryUpdates
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandFactory for CategoryUpdates
impl CommandFactory for CategoryUpdates
Source§impl Debug for CategoryUpdates
impl Debug for CategoryUpdates
Source§impl Default for CategoryUpdates
impl Default for CategoryUpdates
Source§fn default() -> CategoryUpdates
fn default() -> CategoryUpdates
Source§impl<'de> Deserialize<'de> for CategoryUpdates
impl<'de> Deserialize<'de> for CategoryUpdates
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 CategoryUpdates
impl FromArgMatches for CategoryUpdates
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 CategoryUpdates
impl JsonSchema for CategoryUpdates
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 CategoryUpdates
impl Parser for CategoryUpdates
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 CategoryUpdates
impl RefUnwindSafe for CategoryUpdates
impl Send for CategoryUpdates
impl Sync for CategoryUpdates
impl Unpin for CategoryUpdates
impl UnwindSafe for CategoryUpdates
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