pub struct FoundryOutput { /* private fields */ }Expand description
Describes a foundry output that is controlled by an alias.
Implementations§
Source§impl FoundryOutput
impl FoundryOutput
Sourcepub const KIND: u8 = 5u8
pub const KIND: u8 = 5u8
The super::Output kind of a FoundryOutput.
Sourcepub const ALLOWED_UNLOCK_CONDITIONS: UnlockConditionFlags = UnlockConditionFlags::IMMUTABLE_ALIAS_ADDRESS
pub const ALLOWED_UNLOCK_CONDITIONS: UnlockConditionFlags = UnlockConditionFlags::IMMUTABLE_ALIAS_ADDRESS
The set of allowed UnlockConditions for a FoundryOutput.
Sourcepub const ALLOWED_FEATURES: FeatureFlags = FeatureFlags::METADATA
pub const ALLOWED_FEATURES: FeatureFlags = FeatureFlags::METADATA
The set of allowed Features for a FoundryOutput.
Sourcepub const ALLOWED_IMMUTABLE_FEATURES: FeatureFlags = FeatureFlags::METADATA
pub const ALLOWED_IMMUTABLE_FEATURES: FeatureFlags = FeatureFlags::METADATA
The set of allowed immutable Features for a FoundryOutput.
Sourcepub fn build_with_amount(
amount: u64,
serial_number: u32,
token_scheme: TokenScheme,
) -> FoundryOutputBuilder
pub fn build_with_amount( amount: u64, serial_number: u32, token_scheme: TokenScheme, ) -> FoundryOutputBuilder
Creates a new FoundryOutputBuilder with a provided amount.
Sourcepub fn native_tokens(&self) -> &NativeTokens
pub fn native_tokens(&self) -> &NativeTokens
Sourcepub fn serial_number(&self) -> u32
pub fn serial_number(&self) -> u32
Sourcepub fn token_scheme(&self) -> &TokenScheme
pub fn token_scheme(&self) -> &TokenScheme
Sourcepub fn unlock_conditions(&self) -> &UnlockConditions
pub fn unlock_conditions(&self) -> &UnlockConditions
Sourcepub fn immutable_features(&self) -> &Features
pub fn immutable_features(&self) -> &Features
Sourcepub fn alias_address(&self) -> &AliasAddress
pub fn alias_address(&self) -> &AliasAddress
Sourcepub fn id(&self) -> FoundryId
pub fn id(&self) -> FoundryId
Returns the FoundryId of the FoundryOutput.
Sourcepub fn token_id(&self) -> TokenId
pub fn token_id(&self) -> TokenId
Returns the TokenId of the FoundryOutput.
Trait Implementations§
Source§impl Clone for FoundryOutput
impl Clone for FoundryOutput
Source§fn clone(&self) -> FoundryOutput
fn clone(&self) -> FoundryOutput
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 FoundryOutput
impl Debug for FoundryOutput
Source§impl From<&FoundryOutput> for FoundryOutputBuilder
impl From<&FoundryOutput> for FoundryOutputBuilder
Source§fn from(output: &FoundryOutput) -> Self
fn from(output: &FoundryOutput) -> Self
Converts to this type from the input type.
Source§impl From<FoundryOutput> for Output
impl From<FoundryOutput> for Output
Source§fn from(value: FoundryOutput) -> Self
fn from(value: FoundryOutput) -> Self
Converts to this type from the input type.
Source§impl Hash for FoundryOutput
impl Hash for FoundryOutput
Source§impl Ord for FoundryOutput
impl Ord for FoundryOutput
Source§fn cmp(&self, other: &FoundryOutput) -> Ordering
fn cmp(&self, other: &FoundryOutput) -> 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 FoundryOutput
impl Packable for FoundryOutput
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 FoundryOutput
impl PartialEq for FoundryOutput
Source§impl PartialOrd for FoundryOutput
impl PartialOrd for FoundryOutput
impl Eq for FoundryOutput
impl StructuralPartialEq for FoundryOutput
Auto Trait Implementations§
impl Freeze for FoundryOutput
impl RefUnwindSafe for FoundryOutput
impl Send for FoundryOutput
impl Sync for FoundryOutput
impl Unpin for FoundryOutput
impl UnwindSafe for FoundryOutput
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.