Enum bee_message::payload::Payload[][src]

#[non_exhaustive]
pub enum Payload {
    Transaction(Box<TransactionPayload>),
    Milestone(Box<MilestonePayload>),
    Indexation(Box<IndexationPayload>),
    Receipt(Box<ReceiptPayload>),
    TreasuryTransaction(Box<TreasuryTransactionPayload>),
}

A generic payload that can represent different types defining message payloads.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Transaction(Box<TransactionPayload>)

A transaction payload.

Milestone(Box<MilestonePayload>)

A milestone payload.

Indexation(Box<IndexationPayload>)

An indexation payload.

A receipt payload.

TreasuryTransaction(Box<TreasuryTransactionPayload>)

A treasury transaction payload.

Implementations

impl Payload[src]

pub fn kind(&self) -> u32[src]

Returns the payload kind of a Payload.

Trait Implementations

impl Clone for Payload[src]

impl Debug for Payload[src]

impl Eq for Payload[src]

impl From<IndexationPayload> for Payload[src]

impl From<MilestonePayload> for Payload[src]

impl From<ReceiptPayload> for Payload[src]

impl From<TransactionPayload> for Payload[src]

impl From<TreasuryTransactionPayload> for Payload[src]

impl Packable for Payload[src]

type Error = Error

Associated error type.

impl PartialEq<Payload> for Payload[src]

impl StructuralEq for Payload[src]

impl StructuralPartialEq for Payload[src]

Auto Trait Implementations

impl RefUnwindSafe for Payload

impl Send for Payload

impl Sync for Payload

impl Unpin for Payload

impl UnwindSafe for Payload

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.