pub struct TransactionDraft {
pub book: String,
pub idempotency_key: String,
pub postings: Vec<PostingDraft>,
pub external_refs: Vec<ExternalRef>,
pub metadata: Value,
pub occurred_at: Option<DateTime<Utc>>,
}Fields§
§book: String§idempotency_key: String§postings: Vec<PostingDraft>§external_refs: Vec<ExternalRef>§metadata: Value§occurred_at: Option<DateTime<Utc>>Business/event time; the server defaults it to now when absent.
Trait Implementations§
Source§impl Clone for TransactionDraft
impl Clone for TransactionDraft
Source§fn clone(&self) -> TransactionDraft
fn clone(&self) -> TransactionDraft
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 TransactionDraft
impl Debug for TransactionDraft
Source§impl<'de> Deserialize<'de> for TransactionDraft
impl<'de> Deserialize<'de> for TransactionDraft
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransactionDraft, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransactionDraft, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TransactionDraft
impl Serialize for TransactionDraft
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TransactionDraft
impl RefUnwindSafe for TransactionDraft
impl Send for TransactionDraft
impl Sync for TransactionDraft
impl Unpin for TransactionDraft
impl UnsafeUnpin for TransactionDraft
impl UnwindSafe for TransactionDraft
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