Struct bee_message::payload::receipt::ReceiptPayload [−][src]
pub struct ReceiptPayload { /* fields omitted */ }
Receipt is a listing of migrated funds.
Implementations
impl ReceiptPayload
[src]
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]
migrated_at: MilestoneIndex,
last: bool,
funds: Vec<MigratedFundsEntry>,
transaction: Payload
) -> Result<Self, Error>
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]ⓘ
[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 Clone for ReceiptPayload
[src]fn clone(&self) -> ReceiptPayload
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for ReceiptPayload
[src]
impl Eq for ReceiptPayload
[src]impl From<ReceiptPayload> for Payload
[src]
impl From<ReceiptPayload> for Payload
[src]fn from(payload: ReceiptPayload) -> Self
[src]
impl Packable for ReceiptPayload
[src]
impl Packable for ReceiptPayload
[src]type Error = Error
Associated error type.
fn packed_len(&self) -> usize
[src]
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
[src]
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
[src]
reader: &mut R
) -> Result<Self, Self::Error>
pub fn pack_new(&self) -> Vec<u8, Global>
[src]
pub fn unpack<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized,
[src]
R: Read + ?Sized,
pub fn unpack_unchecked<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized,
[src]
R: Read + ?Sized,
impl PartialEq<ReceiptPayload> for ReceiptPayload
[src]
impl PartialEq<ReceiptPayload> for ReceiptPayload
[src]fn eq(&self, other: &ReceiptPayload) -> bool
[src]
fn ne(&self, other: &ReceiptPayload) -> bool
[src]
impl StructuralEq for ReceiptPayload
[src]
impl StructuralEq for ReceiptPayload
[src]impl StructuralPartialEq for ReceiptPayload
[src]
impl StructuralPartialEq for ReceiptPayload
[src]Auto Trait Implementations
impl RefUnwindSafe for ReceiptPayload
impl RefUnwindSafe for ReceiptPayload
impl Send for ReceiptPayload
impl Send for ReceiptPayload
impl Sync for ReceiptPayload
impl Sync for ReceiptPayload
impl Unpin for ReceiptPayload
impl Unpin for ReceiptPayload
impl UnwindSafe for ReceiptPayload
impl UnwindSafe for ReceiptPayload