Struct bee_message::payload::milestone::MilestonePayload
source · pub struct MilestonePayload { /* private fields */ }Expand description
A payload which defines the inclusion set of other messages in the Tangle.
Implementations§
source§impl MilestonePayload
impl MilestonePayload
sourcepub fn new(
essence: MilestonePayloadEssence,
signatures: Vec<[u8; 64]>
) -> Result<Self, Error>
pub fn new( essence: MilestonePayloadEssence, signatures: Vec<[u8; 64]> ) -> Result<Self, Error>
Creates a new MilestonePayload.
sourcepub fn id(&self) -> MilestoneId
pub fn id(&self) -> MilestoneId
Computes the identifier of a MilestonePayload.
sourcepub fn essence(&self) -> &MilestonePayloadEssence
pub fn essence(&self) -> &MilestonePayloadEssence
Returns the essence of a MilestonePayload.
sourcepub fn signatures(&self) -> &Vec<Box<[u8]>>
pub fn signatures(&self) -> &Vec<Box<[u8]>>
Returns the signatures of a MilestonePayload.
Trait Implementations§
source§impl Clone for MilestonePayload
impl Clone for MilestonePayload
source§fn clone(&self) -> MilestonePayload
fn clone(&self) -> MilestonePayload
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MilestonePayload
impl Debug for MilestonePayload
source§impl From<MilestonePayload> for Payload
impl From<MilestonePayload> for Payload
source§fn from(payload: MilestonePayload) -> Self
fn from(payload: MilestonePayload) -> Self
Converts to this type from the input type.
source§impl Packable for MilestonePayload
impl Packable for MilestonePayload
source§fn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length of the packed bytes.
source§fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
Packs the instance to bytes and writes them to the passed writer.
source§fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>( reader: &mut R ) -> Result<Self, Self::Error>
Reads bytes from the passed reader and unpacks them into an instance.
source§fn pack_new(&self) -> Vec<u8, Global>
fn pack_new(&self) -> Vec<u8, Global>
Packs the instance to bytes and writes them to a newly allocated vector.
source§impl PartialEq<MilestonePayload> for MilestonePayload
impl PartialEq<MilestonePayload> for MilestonePayload
source§fn eq(&self, other: &MilestonePayload) -> bool
fn eq(&self, other: &MilestonePayload) -> bool
This method tests for
self and other values to be equal, and is used
by ==.