Struct sn_data_types::TransferValidated[][src]

pub struct TransferValidated {
    pub signed_debit: SignedDebit,
    pub signed_credit: SignedCredit,
    pub replica_debit_sig: SignatureShare,
    pub replica_credit_sig: SignatureShare,
    pub replicas: PublicKeySet,
}

The debiting Replica event raised when ValidateTransfer cmd has been successful.

Fields

signed_debit: SignedDebit

The debit initiated by the Actor.

signed_credit: SignedCredit

The corresponding credit, signed by the Actor.

replica_debit_sig: SignatureShare

Replica signature over the signed debit.

replica_credit_sig: SignatureShare

Replica signature over the signed credit.

replicas: PublicKeySet

The PK Set of the Replicas

Implementations

impl TransferValidated[src]

pub fn id(&self) -> DebitId[src]

Get the debit id

pub fn amount(&self) -> Token[src]

Get the amount of this transfer

pub fn sender(&self) -> PublicKey[src]

Get the sender of this transfer

pub fn recipient(&self) -> PublicKey[src]

Get the recipient of this transfer

Trait Implementations

impl Clone for TransferValidated[src]

impl Debug for TransferValidated[src]

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

impl Eq for TransferValidated[src]

impl PartialEq<TransferValidated> for TransferValidated[src]

impl Serialize for TransferValidated[src]

impl StructuralEq for TransferValidated[src]

impl StructuralPartialEq for TransferValidated[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,