pub struct CreatedOutput { /* private fields */ }Expand description
Represents a newly created output.
Implementations§
Source§impl CreatedOutput
impl CreatedOutput
Sourcepub fn new(
block_id: BlockId,
milestone_index: MilestoneIndex,
milestone_timestamp: u32,
inner: Output,
) -> Self
pub fn new( block_id: BlockId, milestone_index: MilestoneIndex, milestone_timestamp: u32, inner: Output, ) -> Self
Creates a new CreatedOutput.
Sourcepub fn block_id(&self) -> &BlockId
pub fn block_id(&self) -> &BlockId
Returns the block id of the CreatedOutput.
Sourcepub fn milestone_index(&self) -> MilestoneIndex
pub fn milestone_index(&self) -> MilestoneIndex
Returns the milestone index of the CreatedOutput.
Sourcepub fn milestone_timestamp(&self) -> u32
pub fn milestone_timestamp(&self) -> u32
Returns the milestone milestone timestamp of the CreatedOutput.
Sourcepub fn inner(&self) -> &Output
pub fn inner(&self) -> &Output
Returns the inner output of the CreatedOutput.
Methods from Deref<Target = Output>§
pub const AMOUNT_MIN: u64 = 1
Sourcepub fn native_tokens(&self) -> Option<&NativeTokens>
pub fn native_tokens(&self) -> Option<&NativeTokens>
Returns the native tokens of an Output, if any.
Sourcepub fn unlock_conditions(&self) -> Option<&UnlockConditions>
pub fn unlock_conditions(&self) -> Option<&UnlockConditions>
Returns the unlock conditions of an Output, if any.
Sourcepub fn immutable_features(&self) -> Option<&Features>
pub fn immutable_features(&self) -> Option<&Features>
Returns the immutable features of an Output, if any.
Sourcepub fn verify_storage_deposit(
&self,
rent_structure: RentStructure,
token_supply: u64,
) -> Result<(), Error>
pub fn verify_storage_deposit( &self, rent_structure: RentStructure, token_supply: u64, ) -> Result<(), Error>
Verifies if a valid storage deposit was made. Each Output has to have an amount that covers its associated
byte cost, given by RentStructure.
If there is a StorageDepositReturnUnlockCondition,
its amount is also checked.
Trait Implementations§
Source§impl Clone for CreatedOutput
impl Clone for CreatedOutput
Source§fn clone(&self) -> CreatedOutput
fn clone(&self) -> CreatedOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreatedOutput
impl Debug for CreatedOutput
Source§impl Deref for CreatedOutput
impl Deref for CreatedOutput
impl Eq for CreatedOutput
Source§impl Packable for CreatedOutput
impl Packable for CreatedOutput
Source§type UnpackError = Error
type UnpackError = Error
Source§type UnpackVisitor = ProtocolParameters
type UnpackVisitor = ProtocolParameters
Source§fn pack<P: Packer>(&self, packer: &mut P) -> Result<(), P::Error>
fn pack<P: Packer>(&self, packer: &mut P) -> Result<(), P::Error>
Packer.Source§fn unpack<U: Unpacker, const VERIFY: bool>(
unpacker: &mut U,
visitor: &Self::UnpackVisitor,
) -> Result<Self, UnpackError<Self::UnpackError, U::Error>>
fn unpack<U: Unpacker, const VERIFY: bool>( unpacker: &mut U, visitor: &Self::UnpackVisitor, ) -> Result<Self, UnpackError<Self::UnpackError, U::Error>>
Unpacker. The VERIFY generic parameter can be used to skip additional
syntactic checks.Source§impl PartialEq for CreatedOutput
impl PartialEq for CreatedOutput
impl StructuralPartialEq for CreatedOutput
Auto Trait Implementations§
impl Freeze for CreatedOutput
impl RefUnwindSafe for CreatedOutput
impl Send for CreatedOutput
impl Sync for CreatedOutput
impl Unpin for CreatedOutput
impl UnsafeUnpin for CreatedOutput
impl UnwindSafe for CreatedOutput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<P> PackableExt for Pwhere
P: Packable,
impl<P> PackableExt for Pwhere
P: Packable,
Source§fn unpack_verified<T>(
bytes: T,
visitor: &<P as Packable>::UnpackVisitor,
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
fn unpack_verified<T>( bytes: T, visitor: &<P as Packable>::UnpackVisitor, ) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
Unpacks this value from a type that implements [AsRef<[u8]>].
Source§fn unpack_unverified<T>(
bytes: T,
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
fn unpack_unverified<T>( bytes: T, ) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
Unpacks this value from a type that implements [AsRef<[u8]>] skipping some syntatical checks.
Source§fn packed_len(&self) -> usize
fn packed_len(&self) -> usize
pack.