pub struct TreasuryOutput { /* private fields */ }Expand description
Records the creation of a treasury output.
Implementations§
Source§impl TreasuryOutput
impl TreasuryOutput
Sourcepub fn new(inner: TreasuryOutput, milestone_id: MilestoneId) -> Self
pub fn new(inner: TreasuryOutput, milestone_id: MilestoneId) -> Self
Creates a new TreasuryOutput.
Sourcepub fn inner(&self) -> &TreasuryOutput
pub fn inner(&self) -> &TreasuryOutput
Returns the inner output of a TreasuryOutput.
Sourcepub fn milestone_id(&self) -> &MilestoneId
pub fn milestone_id(&self) -> &MilestoneId
Returns the id of the milestone that created the TreasuryOutput.
Trait Implementations§
Source§impl Clone for TreasuryOutput
impl Clone for TreasuryOutput
Source§fn clone(&self) -> TreasuryOutput
fn clone(&self) -> TreasuryOutput
Returns a duplicate 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 TreasuryOutput
impl Debug for TreasuryOutput
Source§impl Packable for TreasuryOutput
impl Packable for TreasuryOutput
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> ⓘ
fn pack_new(&self) -> Vec<u8> ⓘ
Packs the instance to bytes and writes them to a newly allocated vector.
Source§impl PartialEq for TreasuryOutput
impl PartialEq for TreasuryOutput
impl Eq for TreasuryOutput
impl StructuralPartialEq for TreasuryOutput
Auto Trait Implementations§
impl Freeze for TreasuryOutput
impl RefUnwindSafe for TreasuryOutput
impl Send for TreasuryOutput
impl Sync for TreasuryOutput
impl Unpin for TreasuryOutput
impl UnwindSafe for TreasuryOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more