pub struct Transaction {
pub payload: TransactionPayload,
pub block_id: Option<BlockId>,
pub inclusion_state: InclusionState,
pub timestamp: u128,
pub transaction_id: TransactionId,
pub network_id: u64,
pub incoming: bool,
pub note: Option<String>,
pub inputs: Vec<OutputWithMetadataResponse>,
}
Available on crate feature
wallet
only.Expand description
A transaction with metadata
Fields§
§payload: TransactionPayload
§block_id: Option<BlockId>
§inclusion_state: InclusionState
§timestamp: u128
§transaction_id: TransactionId
§network_id: u64
§incoming: bool
§note: Option<String>
§inputs: Vec<OutputWithMetadataResponse>
Outputs that are used as input in the transaction. May not be all, because some may have already been deleted from the node.
Trait Implementations§
source§impl Clone for Transaction
impl Clone for Transaction
source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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 moresource§impl Debug for Transaction
impl Debug for Transaction
source§impl From<&Transaction> for TransactionDto
impl From<&Transaction> for TransactionDto
source§fn from(value: &Transaction) -> Self
fn from(value: &Transaction) -> Self
Converts to this type from the input type.
source§impl PartialEq for Transaction
impl PartialEq for Transaction
source§fn eq(&self, other: &Transaction) -> bool
fn eq(&self, other: &Transaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFromDto for Transaction
impl TryFromDto for Transaction
type Dto = TransactionDto
type Error = Error
fn try_from_dto_with_params_inner( dto: Self::Dto, params: ValidationParams<'_> ) -> Result<Self, Self::Error>
fn try_from_dto(dto: Self::Dto) -> Result<Self, Self::Error>
fn try_from_dto_with_params<'a>( dto: Self::Dto, params: impl Into<ValidationParams<'a>> + Send ) -> Result<Self, Self::Error>
impl Eq for Transaction
impl StructuralPartialEq for Transaction
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more