pub struct TxLogEntry {
pub parent_key_id: Identifier,
pub id: u32,
pub tx_slate_id: Option<Uuid>,
pub tx_type: TxLogEntryType,
pub creation_ts: DateTime<Utc>,
pub confirmation_ts: Option<DateTime<Utc>>,
pub confirmed: bool,
pub num_inputs: usize,
pub num_outputs: usize,
pub amount_credited: u64,
pub amount_debited: u64,
pub fee: Option<u64>,
pub stored_tx: Option<String>,
}
Optional transaction information, recorded when an event happens
to add or remove funds from a wallet. One Transaction log entry
maps to one or many outputs
BIP32 account path used for creating this tx
Local id for this transaction (distinct from a slate transaction id)
Slate transaction this entry is associated with, if any
Transaction type (as above)
Time this tx entry was created
#[serde(with = "tx_date_format")]
Time this tx was confirmed (by this wallet)
#[serde(default, with = "opt_tx_date_format")]
Whether the inputs+outputs involved in this transaction have been
confirmed (In all cases either all outputs involved in a tx should be
confirmed, or none should be; otherwise there's a deeper problem)
number of inputs involved in TX
number of outputs involved in TX
Amount credited via this transaction
Amount debited via this transaction
Location of the store transaction, (reference or resending)
Return a new blank with TS initialised with next entry
Given a vec of TX log entries, return credited + debited sums
Update confirmation TS with now
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Reads the data necessary to this Readable from the provided reader
Write the data held by this Writeable to the provided writer
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Obtain the hash of the object
Hash the object together with another writeable object
impl<T> DebugAny for T where T: Any + Debug, | |
impl<T> CloneAny for T where T: Clone + Any, | |
impl<T> UnsafeAny for T where T: Any, | |
Generate a short_id via the following -
- extract k0/k1 from block_hash hashed with the nonce (first two u64
values) * initialize a siphasher24 with k0/k1
- self.hash() passing in the siphasher24 instance
- drop the 2 most significant bytes (to return a 6 byte short_id)
impl<T> SafeBorrow for T where T: ?Sized, | |
Given ptr
, which was obtained from a prior call to Self::borrow()
, return a value with the same nominal lifetime which is guaranteed to survive mutations to Self
. Read more
impl<'a, T> DefaultFeatures for T where T: 'a + Send + Sync + Clone, | |
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more
impl<'a, T> NonSyncFeatures for T where T: 'a + Clone, | |
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more