pub struct SaveSubTransaction {
pub amount: i64,
pub payee_id: Option<String>,
pub payee_name: Option<String>,
pub category_id: Option<String>,
pub memo: Option<String>,
}
Fields§
§amount: i64
The subtransaction amount in milliunits format.
payee_id: Option<String>
The payee for the subtransaction.
payee_name: Option<String>
The payee name. If a payee_name
value is provided and payee_id
has a null value, the payee_name
value will be used to resolve the payee by either (1) a matching payee rename rule (only if import_id is also specified on parent transaction) or (2) a payee with the same name or (3) creation of a new payee.
category_id: Option<String>
The category for the subtransaction. Credit Card Payment categories are not permitted and will be ignored if supplied.
memo: Option<String>
Implementations§
Source§impl SaveSubTransaction
impl SaveSubTransaction
pub fn new(amount: i64) -> SaveSubTransaction
Trait Implementations§
Source§impl Clone for SaveSubTransaction
impl Clone for SaveSubTransaction
Source§fn clone(&self) -> SaveSubTransaction
fn clone(&self) -> SaveSubTransaction
Returns a duplicate of the value. Read more
1.0.0 · 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 SaveSubTransaction
impl Debug for SaveSubTransaction
Source§impl<'de> Deserialize<'de> for SaveSubTransaction
impl<'de> Deserialize<'de> for SaveSubTransaction
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 SaveSubTransaction
impl PartialEq for SaveSubTransaction
Source§impl Serialize for SaveSubTransaction
impl Serialize for SaveSubTransaction
impl StructuralPartialEq for SaveSubTransaction
Auto Trait Implementations§
impl Freeze for SaveSubTransaction
impl RefUnwindSafe for SaveSubTransaction
impl Send for SaveSubTransaction
impl Sync for SaveSubTransaction
impl Unpin for SaveSubTransaction
impl UnwindSafe for SaveSubTransaction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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