Struct bee_message::payload::receipt::ReceiptPayload[][src]

pub struct ReceiptPayload { /* fields omitted */ }

Receipt is a listing of migrated funds.

Implementations

impl ReceiptPayload[src]

pub const KIND: u32[src]

The payload kind of a ReceiptPayload.

pub fn new(
    migrated_at: MilestoneIndex,
    last: bool,
    funds: Vec<MigratedFundsEntry>,
    transaction: Payload
) -> Result<Self, Error>
[src]

Creates a new ReceiptPayload.

pub fn migrated_at(&self) -> MilestoneIndex[src]

Returns the milestone index at which the funds of a ReceiptPayload were migrated at in the legacy network.

pub fn last(&self) -> bool[src]

Returns whether a ReceiptPayload is the final one for a given migrated at index.

pub fn funds(&self) -> &[MigratedFundsEntry]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

The funds which were migrated with a ReceiptPayload.

pub fn transaction(&self) -> &Payload[src]

The TreasuryTransaction used to fund the funds of a ReceiptPayload.

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

Returns the sum of all MigratedFundsEntry items within a ReceiptPayload.

Trait Implementations

impl Clone for ReceiptPayload[src]

impl Debug for ReceiptPayload[src]

impl Eq for ReceiptPayload[src]

impl From<ReceiptPayload> for Payload[src]

impl Packable for ReceiptPayload[src]

type Error = Error

Associated error type.

impl PartialEq<ReceiptPayload> for ReceiptPayload[src]

impl StructuralEq for ReceiptPayload[src]

impl StructuralPartialEq for ReceiptPayload[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> 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.