Enum bee_message::payload::Payload [−][src]
pub enum Payload {
Transaction(Box<TransactionPayload>),
Milestone(Box<MilestonePayload>),
Indexation(Box<IndexationPayload>),
Receipt(Box<ReceiptPayload>),
TreasuryTransaction(Box<TreasuryTransactionPayload>),
}
Expand description
A generic payload that can represent different types defining message payloads.
Variants
Transaction(Box<TransactionPayload>)
Tuple Fields
A transaction payload.
Milestone(Box<MilestonePayload>)
Tuple Fields
0: Box<MilestonePayload>
A milestone payload.
Indexation(Box<IndexationPayload>)
Tuple Fields
0: Box<IndexationPayload>
An indexation payload.
Receipt(Box<ReceiptPayload>)
Tuple Fields
0: Box<ReceiptPayload>
A receipt payload.
TreasuryTransaction(Box<TreasuryTransactionPayload>)
Tuple Fields
A treasury transaction payload.
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Returns the length of the packed bytes.
Packs the instance to bytes and writes them to the passed writer.
Reads bytes from the passed reader and unpacks them into an instance.
Packs the instance to bytes and writes them to a newly allocated vector.
Reads bytes from the passed reader and unpacks them into an instance. Applies syntactic checks. Read more
Auto Trait Implementations
impl RefUnwindSafe for Payload
impl UnwindSafe for Payload
Blanket Implementations
Mutably borrows from an owned value. Read more