[−][src]Struct grin_wallet_libwallet::TxLogEntry
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
Fields
parent_key_id: Identifier
BIP32 account path used for creating this tx
id: u32
Local id for this transaction (distinct from a slate transaction id)
tx_slate_id: Option<Uuid>
Slate transaction this entry is associated with, if any
tx_type: TxLogEntryType
Transaction type (as above)
creation_ts: DateTime<Utc>
Time this tx entry was created #[serde(with = "tx_date_format")]
confirmation_ts: Option<DateTime<Utc>>
Time this tx was confirmed (by this wallet) #[serde(default, with = "opt_tx_date_format")]
confirmed: bool
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)
num_inputs: usize
number of inputs involved in TX
num_outputs: usize
number of outputs involved in TX
amount_credited: u64
Amount credited via this transaction
amount_debited: u64
Amount debited via this transaction
fee: Option<u64>
Fee
messages: Option<ParticipantMessages>
Message data, stored as json
stored_tx: Option<String>
Location of the store transaction, (reference or resending)
Methods
impl TxLogEntry
[src]
pub fn new(parent_key_id: Identifier, t: TxLogEntryType, id: u32) -> Self
[src]
Return a new blank with TS initialised with next entry
pub fn sum_confirmed(txs: &Vec<TxLogEntry>) -> (u64, u64)
[src]
Given a vec of TX log entries, return credited + debited sums
pub fn update_confirmation_ts(&mut self)
[src]
Update confirmation TS with now
Trait Implementations
impl Clone for TxLogEntry
[src]
fn clone(&self) -> TxLogEntry
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for TxLogEntry
[src]
impl Serialize for TxLogEntry
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for TxLogEntry
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Writeable for TxLogEntry
[src]
impl Readable for TxLogEntry
[src]
fn read(reader: &mut dyn Reader) -> Result<TxLogEntry, Error>
[src]
Auto Trait Implementations
impl Send for TxLogEntry
impl Unpin for TxLogEntry
impl Sync for TxLogEntry
impl UnwindSafe for TxLogEntry
impl RefUnwindSafe for TxLogEntry
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Send + Sync + Clone,
T: 'a + Send + Sync + Clone,
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
T: 'a + Clone,
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Sync + Send> where
T: Send + Sync,
T: Send + Sync,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,