pub struct UpdateExpenseRequest {
pub cost: Option<String>,
pub description: Option<String>,
pub details: Option<String>,
pub date: Option<DateTime<Utc>>,
pub repeat_interval: Option<String>,
pub currency_code: Option<String>,
pub category_id: Option<i64>,
pub group_id: i64,
pub users: Option<Vec<UserShare>>,
}Expand description
Splitwise update_expense request.
Fields§
§cost: Option<String>A string representation of a decimal value, limited to 2 decimal places.
description: Option<String>A short description of the expense.
details: Option<String>Also known as “notes.”
date: Option<DateTime<Utc>>The date and time the expense took place. May differ from created_at.
repeat_interval: Option<String>Cadence at which the expense repeats. One of:
neverweeklyfortnightlymonthlyyearly
currency_code: Option<String>A currency code. Must be in the list from get_currencies.
category_id: Option<i64>A category id from get_categories.
group_id: i64The group to put this expense in.
users: Option<Vec<UserShare>>Users by share if not splitting the expense equally.
Trait Implementations§
Source§impl Clone for UpdateExpenseRequest
impl Clone for UpdateExpenseRequest
Source§fn clone(&self) -> UpdateExpenseRequest
fn clone(&self) -> UpdateExpenseRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdateExpenseRequest
impl Debug for UpdateExpenseRequest
Source§impl Default for UpdateExpenseRequest
impl Default for UpdateExpenseRequest
Source§fn default() -> UpdateExpenseRequest
fn default() -> UpdateExpenseRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateExpenseRequest
impl<'de> Deserialize<'de> for UpdateExpenseRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UpdateExpenseRequest
impl PartialEq for UpdateExpenseRequest
Source§fn eq(&self, other: &UpdateExpenseRequest) -> bool
fn eq(&self, other: &UpdateExpenseRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpdateExpenseRequest
impl Serialize for UpdateExpenseRequest
impl StructuralPartialEq for UpdateExpenseRequest
Auto Trait Implementations§
impl Freeze for UpdateExpenseRequest
impl RefUnwindSafe for UpdateExpenseRequest
impl Send for UpdateExpenseRequest
impl Sync for UpdateExpenseRequest
impl Unpin for UpdateExpenseRequest
impl UnsafeUnpin for UpdateExpenseRequest
impl UnwindSafe for UpdateExpenseRequest
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
Mutably borrows from an owned value. Read more