pub enum TransactionEntity {
OurAddress(ShortAddressHash),
OtherAddress(ShortAddressHash),
Swap,
}
Expand description
An entity with whom a transaction can interact, and who can be identified by the TxSummary verification process
Variants§
OurAddress(ShortAddressHash)
Outputs to a non-change address that we control (hash {0})
OtherAddress(ShortAddressHash)
Outputs to other accounts (hash {0})
Swap
Outputs to swap counterparty
Trait Implementations§
§impl Clone for TransactionEntity
impl Clone for TransactionEntity
§fn clone(&self) -> TransactionEntity
fn clone(&self) -> TransactionEntity
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for TransactionEntity
impl Debug for TransactionEntity
§impl Display for TransactionEntity
impl Display for TransactionEntity
§impl Ord for TransactionEntity
impl Ord for TransactionEntity
§fn cmp(&self, other: &TransactionEntity) -> Ordering
fn cmp(&self, other: &TransactionEntity) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq<TransactionEntity> for TransactionEntity
impl PartialEq<TransactionEntity> for TransactionEntity
§fn eq(&self, other: &TransactionEntity) -> bool
fn eq(&self, other: &TransactionEntity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<TransactionEntity> for TransactionEntity
impl PartialOrd<TransactionEntity> for TransactionEntity
§fn partial_cmp(&self, other: &TransactionEntity) -> Option<Ordering>
fn partial_cmp(&self, other: &TransactionEntity) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TransactionEntity
impl StructuralEq for TransactionEntity
impl StructuralPartialEq for TransactionEntity
Auto Trait Implementations§
impl RefUnwindSafe for TransactionEntity
impl Send for TransactionEntity
impl Sync for TransactionEntity
impl Unpin for TransactionEntity
impl UnwindSafe for TransactionEntity
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