[−][src]Struct ynab_api::models::category::Category
Fields
id: String
category_group_id: String
name: String
Whether or not the category is hidden
original_category_group_id: Option<String>
If category is hidden this is the id of the category group it originally belonged to before it was hidden.
note: Option<String>
budgeted: i64
Budgeted amount in milliunits format
activity: i64
Activity amount in milliunits format
balance: i64
Balance in milliunits format
goal_type: Option<GoalType>
The type of goal, if the category has a goal (TB=Target Category Balance, TBD=Target Category Balance by Date, MF=Monthly Funding)
goal_creation_month: Option<String>
The month a goal was created
goal_target: Option<i64>
The goal target amount in milliunits
goal_target_month: Option<String>
If the goal type is 'TBD' (Target Category Balance by Date), this is the target month for the goal to be completed
goal_percentage_complete: Option<i32>
The percentage completion of the goal
deleted: bool
Whether or not the category has been deleted. Deleted categories will only be included in delta requests.
Methods
impl Category
[src]
pub fn new(
id: String,
category_group_id: String,
name: String,
hidden: bool,
budgeted: i64,
activity: i64,
balance: i64,
deleted: bool
) -> Category
[src]
id: String,
category_group_id: String,
name: String,
hidden: bool,
budgeted: i64,
activity: i64,
balance: i64,
deleted: bool
) -> Category
Trait Implementations
impl PartialEq<Category> for Category
[src]
impl Debug for Category
[src]
impl StructuralPartialEq for Category
[src]
impl Serialize for Category
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Category
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Category
impl Sync for Category
impl Unpin for Category
impl UnwindSafe for Category
impl RefUnwindSafe for Category
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,