Struct tari_wallet::transaction_service::storage::models::InboundTransaction[][src]

pub struct InboundTransaction {
    pub tx_id: TxId,
    pub source_public_key: CommsPublicKey,
    pub amount: MicroTari,
    pub receiver_protocol: ReceiverTransactionProtocol,
    pub status: TransactionStatus,
    pub message: String,
    pub timestamp: NaiveDateTime,
    pub cancelled: bool,
    pub direct_send_success: bool,
    pub send_count: u32,
    pub last_send_timestamp: Option<NaiveDateTime>,
}

Fields

tx_id: TxIdsource_public_key: CommsPublicKeyamount: MicroTarireceiver_protocol: ReceiverTransactionProtocolstatus: TransactionStatusmessage: Stringtimestamp: NaiveDateTimecancelled: booldirect_send_success: boolsend_count: u32last_send_timestamp: Option<NaiveDateTime>

Implementations

impl InboundTransaction[src]

pub fn new(
    tx_id: TxId,
    source_public_key: CommsPublicKey,
    amount: MicroTari,
    receiver_protocol: ReceiverTransactionProtocol,
    status: TransactionStatus,
    message: String,
    timestamp: NaiveDateTime
) -> Self
[src]

Trait Implementations

impl Clone for InboundTransaction[src]

impl Debug for InboundTransaction[src]

impl<'de> Deserialize<'de> for InboundTransaction[src]

impl From<CompletedTransaction> for InboundTransaction[src]

impl From<InboundTransaction> for CompletedTransaction[src]

impl PartialEq<InboundTransaction> for InboundTransaction[src]

impl Serialize for InboundTransaction[src]

impl StructuralPartialEq for InboundTransaction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DebugAny for T where
    T: Any + Debug

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FileBackup<T> for T where
    T: Serialize + DeserializeOwned
[src]

pub fn from_file(filename: &str) -> Result<T, FileError>[src]

Load struct state from backup file

pub fn to_file(&self, filename: &str) -> Result<(), FileError>[src]

Backup struct state in file specified by filename

impl<T> From<T> for T[src]

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> IntoSql for T[src]

impl<T> MessageFormat for T where
    T: DeserializeOwned + Serialize

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,