pub struct Expense {Show 19 fields
pub user_assignment: Option<UserAssignment>,
pub units: Option<i64>,
pub locked_reason: Option<String>,
pub id: Option<i64>,
pub receipt: Option<Value>,
pub created_at: Option<String>,
pub billable: Option<bool>,
pub is_closed: Option<bool>,
pub expense_category: Option<Value>,
pub invoice: Option<Value>,
pub total_cost: Option<f64>,
pub updated_at: Option<String>,
pub user: Option<Value>,
pub spent_date: Option<String>,
pub notes: Option<String>,
pub project: Option<Value>,
pub is_locked: Option<bool>,
pub client: Option<Value>,
pub is_billed: Option<bool>,
}Fields§
§user_assignment: Option<UserAssignment>§units: Option<i64>The quantity of units used to calculate the total_cost of the expense.
locked_reason: Option<String>An explanation of why the expense has been locked.
id: Option<i64>Unique ID for the expense.
receipt: Option<Value>An object containing the expense’s receipt URL and file name.
created_at: Option<String>Date and time the expense was created.
billable: Option<bool>Whether the expense is billable or not.
is_closed: Option<bool>Whether the expense has been approved or closed for some other reason.
expense_category: Option<Value>An object containing the expense’s expense category id, name, unit_price, and unit_name.
invoice: Option<Value>Once the expense has been invoiced, this field will include the associated invoice’s id and number.
total_cost: Option<f64>The total amount of the expense.
updated_at: Option<String>Date and time the expense was last updated.
user: Option<Value>An object containing the id and name of the user that recorded the expense.
spent_date: Option<String>Date the expense occurred.
notes: Option<String>Textual notes used to describe the expense.
project: Option<Value>An object containing the expense’s project id, name, and code.
is_locked: Option<bool>Whether the expense has been been invoiced, approved, or the project or person related to the expense is archived.
client: Option<Value>An object containing the expense’s client id, name, and currency.
is_billed: Option<bool>Whether or not the expense has been marked as invoiced.