pub struct BasicOutput { /* private fields */ }Expand description
Describes a basic output with optional features.
Implementations§
Source§impl BasicOutput
impl BasicOutput
Sourcepub const KIND: u8 = 3u8
pub const KIND: u8 = 3u8
The super::Output kind of an BasicOutput.
Sourcepub const ALLOWED_FEATURES: FeatureFlags
pub const ALLOWED_FEATURES: FeatureFlags
The set of allowed Features for an BasicOutput.
Sourcepub fn build_with_amount(amount: u64) -> BasicOutputBuilder
pub fn build_with_amount(amount: u64) -> BasicOutputBuilder
Creates a new BasicOutputBuilder with a provided amount.
Sourcepub fn native_tokens(&self) -> &NativeTokens
pub fn native_tokens(&self) -> &NativeTokens
Sourcepub fn unlock_conditions(&self) -> &UnlockConditions
pub fn unlock_conditions(&self) -> &UnlockConditions
Sourcepub fn simple_deposit_address(&self) -> Option<&Address>
pub fn simple_deposit_address(&self) -> Option<&Address>
Returns the address of the unlock conditions if the output is a simple deposit. Simple deposit outputs are basic outputs with only an address unlock condition, no native tokens and no features. They are used to return storage deposits.
Trait Implementations§
Source§impl Clone for BasicOutput
impl Clone for BasicOutput
Source§fn clone(&self) -> BasicOutput
fn clone(&self) -> BasicOutput
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 BasicOutput
impl Debug for BasicOutput
Source§impl From<&BasicOutput> for BasicOutputBuilder
impl From<&BasicOutput> for BasicOutputBuilder
Source§fn from(output: &BasicOutput) -> Self
fn from(output: &BasicOutput) -> Self
Converts to this type from the input type.
Source§impl From<BasicOutput> for Output
impl From<BasicOutput> for Output
Source§fn from(value: BasicOutput) -> Self
fn from(value: BasicOutput) -> Self
Converts to this type from the input type.
Source§impl Hash for BasicOutput
impl Hash for BasicOutput
Source§impl Ord for BasicOutput
impl Ord for BasicOutput
Source§fn cmp(&self, other: &BasicOutput) -> Ordering
fn cmp(&self, other: &BasicOutput) -> 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 BasicOutput
impl Packable for BasicOutput
Source§type UnpackError = Error
type UnpackError = Error
The error type that can be returned if some semantic error occurs while unpacking. Read more
Source§type UnpackVisitor = <u64 as Packable>::UnpackVisitor
type UnpackVisitor = <u64 as Packable>::UnpackVisitor
FIXME: docs
Source§impl PartialEq for BasicOutput
impl PartialEq for BasicOutput
Source§impl PartialOrd for BasicOutput
impl PartialOrd for BasicOutput
impl Eq for BasicOutput
impl StructuralPartialEq for BasicOutput
Auto Trait Implementations§
impl Freeze for BasicOutput
impl RefUnwindSafe for BasicOutput
impl Send for BasicOutput
impl Sync for BasicOutput
impl Unpin for BasicOutput
impl UnwindSafe for BasicOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<P> PackableExt for Pwhere
P: Packable,
impl<P> PackableExt for Pwhere
P: Packable,
§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]>].
§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.
§fn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length in bytes of the value after being packed. The returned value always matches the number of
bytes written using
pack.