Struct bee_message::input::TreasuryInput
source · [−]pub struct TreasuryInput(_);Expand description
TreasuryInput is an input which references a milestone which generated a TreasuryOutput.
Implementations
sourceimpl 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
sourceimpl Clone for TreasuryInput
impl Clone for TreasuryInput
sourcefn clone(&self) -> TreasuryInput
fn clone(&self) -> TreasuryInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TreasuryInput
impl Debug for TreasuryInput
sourceimpl Deref for TreasuryInput
impl Deref for TreasuryInput
type Target = MilestoneId
type Target = MilestoneId
The resulting type after dereferencing.
sourceimpl Display for TreasuryInput
impl Display for TreasuryInput
sourceimpl From<MilestoneId> for TreasuryInput
impl From<MilestoneId> for TreasuryInput
sourcefn from(id: MilestoneId) -> Self
fn from(id: MilestoneId) -> Self
Converts to this type from the input type.
sourceimpl From<TreasuryInput> for Input
impl From<TreasuryInput> for Input
sourcefn from(input: TreasuryInput) -> Self
fn from(input: TreasuryInput) -> Self
Converts to this type from the input type.
sourceimpl FromStr for TreasuryInput
impl FromStr for TreasuryInput
sourceimpl Hash for TreasuryInput
impl Hash for TreasuryInput
sourceimpl Ord for TreasuryInput
impl Ord for TreasuryInput
sourceimpl Packable for TreasuryInput
impl Packable for TreasuryInput
sourcefn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length of the packed bytes.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourceimpl PartialEq<TreasuryInput> for TreasuryInput
impl PartialEq<TreasuryInput> for TreasuryInput
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &TreasuryInput) -> bool
fn ne(&self, other: &TreasuryInput) -> bool
This method tests for !=.
sourceimpl PartialOrd<TreasuryInput> for TreasuryInput
impl PartialOrd<TreasuryInput> for TreasuryInput
sourcefn partial_cmp(&self, other: &TreasuryInput) -> Option<Ordering>
fn partial_cmp(&self, other: &TreasuryInput) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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
impl Copy for TreasuryInput
impl Eq for TreasuryInput
impl StructuralEq for TreasuryInput
impl StructuralPartialEq for TreasuryInput
Auto Trait Implementations
impl RefUnwindSafe for TreasuryInput
impl Send for TreasuryInput
impl Sync for TreasuryInput
impl Unpin for TreasuryInput
impl UnwindSafe for TreasuryInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more