BudgetResponse

Struct BudgetResponse 

Source
pub struct BudgetResponse {
Show 16 fields pub amount: Option<f64>, pub category_guid: Option<String>, pub created_at: Option<String>, pub guid: Option<String>, pub is_exceeded: Option<bool>, pub is_off_track: Option<bool>, pub metadata: Option<String>, pub name: Option<String>, pub off_track_percentage: Option<f64>, pub parent_guid: Option<String>, pub percent_spent: Option<f64>, pub projected_spending: Option<f64>, pub revision: Option<i64>, pub transaction_total: Option<Value>, pub updated_at: Option<Value>, pub user_guid: Option<Value>,
}
Expand description

BudgetResponse

JSON schema
{
 "properties": {
   "amount": {
     "description": "A goal amount set by the user for a category's
transaction total during a month.",
     "examples": [
       153
     ],
     "type": "number"
   },
   "category_guid": {
     "description": "Unique identifier for the budget category. Defined
by MX.",
     "examples": [
       "CAT-bd56d35a-a9a7-6e10-66c1-5b9cc1b6c81a"
     ],
     "type": "string"
   },
   "created_at": {
     "description": "Date and time the budget was created, represented
in ISO 8601 format with timestamp.",
     "examples": [
       "2018-10-18T19:51:26+00:00"
     ],
     "type": "string"
   },
   "guid": {
     "description": "Unique identifier for the budget. Defined by MX.",
     "examples": [
       "BGT-6ca0e3ef-c65e-4655-8b5a-275a3c19c21d"
     ],
     "type": "string"
   },
   "is_exceeded": {
     "description": "If the budget has been exceeded, this field will be
true. Otherwise, this field will be false.",
     "examples": [
       true
     ],
     "type": "boolean"
   },
   "is_off_track": {
     "description": "If the budget is off track, this field will be
true. Otherwise, this field will be false.",
     "examples": [
       true
     ],
     "type": "boolean"
   },
   "metadata": {
     "description": "Additional information a partner can store on the
budget.",
     "examples": [
       "some metadata"
     ],
     "type": [
       "string",
       "null"
     ]
   },
   "name": {
     "description": "The name of the budget that is visible to the user
(ie \"Food\", \"Bills\", \"Entertainment\", etc).",
     "examples": [
       "Food & Dining"
     ],
     "type": [
       "string",
       "null"
     ]
   },
   "off_track_percentage": {
     "description": "The percentage amount of off track spending.
(Deprecated).",
     "type": [
       "number",
       "null"
     ]
   },
   "parent_guid": {
     "description": "Unique identifier for the parent budget. Defined by
MX.",
     "type": [
       "string",
       "null"
     ]
   },
   "percent_spent": {
     "description": "The percentage of a budget that has been spent
during the current calendar month Calculated as the transaction total
divided by the amount and then multiplied by 100.A value of zero will be
returned when `amount` is zero.",
     "examples": [
       1276.34
     ],
     "type": [
       "number",
       "null"
     ]
   },
   "projected_spending": {
     "description": "The projected amount of spending for the budget.",
     "examples": [
       3562.4
     ],
     "type": "number"
   },
   "revision": {
     "description": "The revision number of this budget record.",
     "examples": [
       561
     ],
     "type": "integer"
   },
   "transaction_total": {
     "description": "The cumulative amount of all transactions under the
budget.",
     "examples": [
       1952.8
     ]
   },
   "updated_at": {
     "description": "Date and time the budget was updated, represented
in ISO 8601 format with timestamp.",
     "examples": [
       "2022-06-14T21:17:11+00:00"
     ]
   },
   "user_guid": {
     "description": "Unique identifier for the user. Defined by MX.",
     "examples": [
       "USR-11141024-90b3-1bce-cac9-c06ced52ab4c"
     ]
   }
 }
}

Fields§

§amount: Option<f64>§category_guid: Option<String>

Unique identifier for the budget category. Defined by MX.

§created_at: Option<String>

Date and time the budget was created, represented in ISO 8601 format with timestamp.

§guid: Option<String>

Unique identifier for the budget. Defined by MX.

§is_exceeded: Option<bool>

If the budget has been exceeded, this field will be true. Otherwise, this field will be false.

§is_off_track: Option<bool>

If the budget is off track, this field will be true. Otherwise, this field will be false.

§metadata: Option<String>

Additional information a partner can store on the budget.

§name: Option<String>

The name of the budget that is visible to the user (ie “Food”, “Bills”, “Entertainment”, etc).

§off_track_percentage: Option<f64>

The percentage amount of off track spending. (Deprecated).

§parent_guid: Option<String>

Unique identifier for the parent budget. Defined by MX.

§percent_spent: Option<f64>

The percentage of a budget that has been spent during the current calendar month Calculated as the transaction total divided by the amount and then multiplied by 100.A value of zero will be returned when amount is zero.

§projected_spending: Option<f64>§revision: Option<i64>

The revision number of this budget record.

§transaction_total: Option<Value>

The cumulative amount of all transactions under the budget.

§updated_at: Option<Value>

Date and time the budget was updated, represented in ISO 8601 format with timestamp.

§user_guid: Option<Value>

Unique identifier for the user. Defined by MX.

Trait Implementations§

Source§

impl Clone for BudgetResponse

Source§

fn clone(&self) -> BudgetResponse

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BudgetResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for BudgetResponse

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for BudgetResponse

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&BudgetResponse> for BudgetResponse

Source§

fn from(value: &BudgetResponse) -> Self

Converts to this type from the input type.
Source§

impl Serialize for BudgetResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,