Struct bee_message::payload::receipt::ReceiptPayload [−][src]
pub struct ReceiptPayload { /* fields omitted */ }
Expand description
Receipt is a listing of migrated funds.
Implementations
impl ReceiptPayload
[src]
impl ReceiptPayload
[src]pub fn new(
migrated_at: MilestoneIndex,
last: bool,
funds: Vec<MigratedFundsEntry>,
transaction: Payload
) -> Result<Self, Error>
[src]
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]
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]
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]
pub fn funds(&self) -> &[MigratedFundsEntry]ⓘ
[src]The funds which were migrated with a ReceiptPayload
.
pub fn transaction(&self) -> &Payload
[src]
pub fn transaction(&self) -> &Payload
[src]The TreasuryTransaction
used to fund the funds of a ReceiptPayload
.
Trait Implementations
impl Clone for ReceiptPayload
[src]
impl Clone for ReceiptPayload
[src]fn clone(&self) -> ReceiptPayload
[src]
fn clone(&self) -> ReceiptPayload
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ReceiptPayload
[src]
impl Debug for ReceiptPayload
[src]impl From<ReceiptPayload> for Payload
[src]
impl From<ReceiptPayload> for Payload
[src]fn from(payload: ReceiptPayload) -> Self
[src]
fn from(payload: ReceiptPayload) -> Self
[src]Performs the conversion.
impl Packable for ReceiptPayload
[src]
impl Packable for ReceiptPayload
[src]fn packed_len(&self) -> usize
[src]
fn packed_len(&self) -> usize
[src]Returns the length of the packed bytes.
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
[src]
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
[src]Packs the instance to bytes and writes them to the passed writer.
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
[src]
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
[src]Reads bytes from the passed reader and unpacks them into an instance.
fn pack_new(&self) -> Vec<u8, Global>
[src]
fn pack_new(&self) -> Vec<u8, Global>
[src]Packs the instance to bytes and writes them to a newly allocated vector.
impl PartialEq<ReceiptPayload> for ReceiptPayload
[src]
impl PartialEq<ReceiptPayload> for ReceiptPayload
[src]fn eq(&self, other: &ReceiptPayload) -> bool
[src]
fn eq(&self, other: &ReceiptPayload) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ReceiptPayload) -> bool
[src]
fn ne(&self, other: &ReceiptPayload) -> bool
[src]This method tests for !=
.
impl Eq for ReceiptPayload
[src]
impl StructuralEq for ReceiptPayload
[src]
impl StructuralPartialEq for ReceiptPayload
[src]
Auto Trait Implementations
impl RefUnwindSafe for ReceiptPayload
impl Send for ReceiptPayload
impl Sync for ReceiptPayload
impl Unpin for ReceiptPayload
impl UnwindSafe for ReceiptPayload
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more