Enum bee_message::output::Output
source · pub enum Output {
SignatureLockedSingle(SignatureLockedSingleOutput),
SignatureLockedDustAllowance(SignatureLockedDustAllowanceOutput),
Treasury(TreasuryOutput),
}Expand description
A generic output that can represent different types defining the deposit of funds.
Variants§
SignatureLockedSingle(SignatureLockedSingleOutput)
A signature locked single output.
SignatureLockedDustAllowance(SignatureLockedDustAllowanceOutput)
A signature locked dust allowance output.
Treasury(TreasuryOutput)
A treasury output.
Implementations§
Trait Implementations§
source§impl From<SignatureLockedDustAllowanceOutput> for Output
impl From<SignatureLockedDustAllowanceOutput> for Output
source§fn from(output: SignatureLockedDustAllowanceOutput) -> Self
fn from(output: SignatureLockedDustAllowanceOutput) -> Self
Converts to this type from the input type.
source§impl From<SignatureLockedSingleOutput> for Output
impl From<SignatureLockedSingleOutput> for Output
source§fn from(output: SignatureLockedSingleOutput) -> Self
fn from(output: SignatureLockedSingleOutput) -> Self
Converts to this type from the input type.
source§impl From<TreasuryOutput> for Output
impl From<TreasuryOutput> for Output
source§fn from(output: TreasuryOutput) -> Self
fn from(output: TreasuryOutput) -> Self
Converts to this type from the input type.
source§impl Ord for Output
impl Ord for Output
source§impl Packable for Output
impl Packable for Output
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<Output> for Output
impl PartialEq<Output> for Output
source§impl PartialOrd<Output> for Output
impl PartialOrd<Output> for Output
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