Struct bee_message::payload::milestone::MilestonePayload[][src]

pub struct MilestonePayload { /* fields omitted */ }

A payload which defines the inclusion set of other messages in the Tangle.

Implementations

impl MilestonePayload[src]

pub const KIND: u32[src]

The payload kind of a MilestonePayload.

pub fn new(
    essence: MilestonePayloadEssence,
    signatures: Vec<[u8; 64]>
) -> Result<Self, Error>
[src]

Creates a new MilestonePayload.

pub fn id(&self) -> MilestoneId[src]

Computes the identifier of a MilestonePayload.

pub fn essence(&self) -> &MilestonePayloadEssence[src]

Returns the essence of a MilestonePayload.

pub fn signatures(&self) -> &Vec<Box<[u8]>>[src]

Returns the signatures of a MilestonePayload.

pub fn validate(
    &self,
    applicable_public_keys: &[String],
    min_threshold: usize
) -> Result<(), MilestoneValidationError>
[src]

Semantically validate a MilestonePayload.

Trait Implementations

impl Clone for MilestonePayload[src]

impl Debug for MilestonePayload[src]

impl Eq for MilestonePayload[src]

impl From<MilestonePayload> for Payload[src]

impl Packable for MilestonePayload[src]

type Error = Error

Associated error type.

impl PartialEq<MilestonePayload> for MilestonePayload[src]

impl StructuralEq for MilestonePayload[src]

impl StructuralPartialEq for MilestonePayload[src]

Auto Trait Implementations

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.