#[non_exhaustive]pub struct CreateTransaction {
pub id: Option<TransactionId>,
pub time: Option<DateTime>,
pub user_id: Option<i64>,
pub account_id: Option<AccountId>,
pub batch_id: Option<TransactionId>,
pub request_id: Option<RequestId>,
pub division_id: Option<i64>,
pub site_id: Option<i64>,
pub account_user_id: Option<i64>,
pub account_number: Option<i64>,
pub home_currency: Option<Currency>,
}Expand description
A CreateTransaction represents the creation of an Account.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Option<TransactionId>The Transaction’s Identifier.
time: Option<DateTime>The date/time when the Transaction was created.
user_id: Option<i64>The ID of the user that initiated the creation of the Transaction.
account_id: Option<AccountId>The ID of the Account the Transaction was created for.
batch_id: Option<TransactionId>The ID of the “batch” that the Transaction belongs to. Transactions in the same batch are applied to the Account simultaneously.
request_id: Option<RequestId>The Request ID of the request which generated the transaction.
division_id: Option<i64>The ID of the Division that the Account is in
site_id: Option<i64>The ID of the Site that the Account was created at
account_user_id: Option<i64>The ID of the user that the Account was created for
account_number: Option<i64>The number of the Account within the site/division/user
home_currency: Option<Currency>The home currency of the Account
Trait Implementations§
Source§impl Clone for CreateTransaction
impl Clone for CreateTransaction
Source§fn clone(&self) -> CreateTransaction
fn clone(&self) -> CreateTransaction
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 CreateTransaction
impl Debug for CreateTransaction
Source§impl<'de> Deserialize<'de> for CreateTransaction
impl<'de> Deserialize<'de> for CreateTransaction
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 CreateTransaction
impl PartialEq for CreateTransaction
Source§impl Serialize for CreateTransaction
impl Serialize for CreateTransaction
impl StructuralPartialEq for CreateTransaction
Auto Trait Implementations§
impl Freeze for CreateTransaction
impl RefUnwindSafe for CreateTransaction
impl Send for CreateTransaction
impl Sync for CreateTransaction
impl Unpin for CreateTransaction
impl UnsafeUnpin for CreateTransaction
impl UnwindSafe for CreateTransaction
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