pub struct NewTransactionAllOf {
pub import_id: Option<String>,
}
Fields§
§import_id: Option<String>
If specified, a new transaction will be assigned this import_id
and considered "imported". We will also attempt to match this imported transaction to an existing "user-entered" transaction on the same account, with the same amount, and with a date +/-10 days from the imported transaction date.
Transactions imported through File Based Import or Direct Import (not through the API) are assigned an import_id in the format: ‘YNAB:[milliunit_amount]:[iso_date]:[occurrence]’. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of ‘YNAB:-294230:2015-12-30:1’. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be ‘YNAB:-294230:2015-12-30:2’. Using a consistent format will prevent duplicates through Direct Import and File Based Import.
If import_id is omitted or specified as null, the transaction will be treated as a "user-entered" transaction. As such, it will be eligible to be matched against transactions later being imported (via DI, FBI, or API).
Implementations§
Source§impl NewTransactionAllOf
impl NewTransactionAllOf
pub fn new() -> NewTransactionAllOf
Trait Implementations§
Source§impl Clone for NewTransactionAllOf
impl Clone for NewTransactionAllOf
Source§fn clone(&self) -> NewTransactionAllOf
fn clone(&self) -> NewTransactionAllOf
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NewTransactionAllOf
impl Debug for NewTransactionAllOf
Source§impl<'de> Deserialize<'de> for NewTransactionAllOf
impl<'de> Deserialize<'de> for NewTransactionAllOf
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>,
Source§impl PartialEq for NewTransactionAllOf
impl PartialEq for NewTransactionAllOf
Source§impl Serialize for NewTransactionAllOf
impl Serialize for NewTransactionAllOf
impl StructuralPartialEq for NewTransactionAllOf
Auto Trait Implementations§
impl Freeze for NewTransactionAllOf
impl RefUnwindSafe for NewTransactionAllOf
impl Send for NewTransactionAllOf
impl Sync for NewTransactionAllOf
impl Unpin for NewTransactionAllOf
impl UnwindSafe for NewTransactionAllOf
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
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>
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>
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