Struct bee_message::input::TreasuryInput
source · pub struct TreasuryInput(_);Expand description
TreasuryInput is an input which references a milestone which generated a TreasuryOutput.
Implementations§
source§impl TreasuryInput
impl TreasuryInput
sourcepub fn new(id: MilestoneId) -> Self
pub fn new(id: MilestoneId) -> Self
Creates a new TreasuryInput.
sourcepub fn milestone_id(&self) -> &MilestoneId
pub fn milestone_id(&self) -> &MilestoneId
Returns the milestones id of a TreasuryInput.
Trait Implementations§
source§impl Clone for TreasuryInput
impl Clone for TreasuryInput
source§fn clone(&self) -> TreasuryInput
fn clone(&self) -> TreasuryInput
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 TreasuryInput
impl Debug for TreasuryInput
source§impl Deref for TreasuryInput
impl Deref for TreasuryInput
source§impl Display for TreasuryInput
impl Display for TreasuryInput
source§impl From<MilestoneId> for TreasuryInput
impl From<MilestoneId> for TreasuryInput
source§fn from(id: MilestoneId) -> Self
fn from(id: MilestoneId) -> Self
Converts to this type from the input type.
source§impl From<TreasuryInput> for Input
impl From<TreasuryInput> for Input
source§fn from(input: TreasuryInput) -> Self
fn from(input: TreasuryInput) -> Self
Converts to this type from the input type.
source§impl FromStr for TreasuryInput
impl FromStr for TreasuryInput
source§impl Hash for TreasuryInput
impl Hash for TreasuryInput
source§impl Ord for TreasuryInput
impl Ord for TreasuryInput
source§fn cmp(&self, other: &TreasuryInput) -> Ordering
fn cmp(&self, other: &TreasuryInput) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl Packable for TreasuryInput
impl Packable for TreasuryInput
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<TreasuryInput> for TreasuryInput
impl PartialEq<TreasuryInput> for TreasuryInput
source§fn eq(&self, other: &TreasuryInput) -> bool
fn eq(&self, other: &TreasuryInput) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<TreasuryInput> for TreasuryInput
impl PartialOrd<TreasuryInput> for TreasuryInput
source§fn partial_cmp(&self, other: &TreasuryInput) -> Option<Ordering>
fn partial_cmp(&self, other: &TreasuryInput) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more