pub struct AliasOutput { /* private fields */ }Expand description
Describes an alias account in the ledger that can be controlled by the state and governance controllers.
Implementations§
Source§impl AliasOutput
impl AliasOutput
Sourcepub const KIND: u8 = 4u8
pub const KIND: u8 = 4u8
The super::Output kind of an AliasOutput.
Sourcepub const STATE_METADATA_LENGTH_MAX: u16 = 8_192u16
pub const STATE_METADATA_LENGTH_MAX: u16 = 8_192u16
Maximum possible length in bytes of the state metadata.
Sourcepub const ALLOWED_UNLOCK_CONDITIONS: UnlockConditionFlags
pub const ALLOWED_UNLOCK_CONDITIONS: UnlockConditionFlags
The set of allowed UnlockConditions for an AliasOutput.
Sourcepub const ALLOWED_FEATURES: FeatureFlags
pub const ALLOWED_FEATURES: FeatureFlags
The set of allowed Features for an AliasOutput.
Sourcepub const ALLOWED_IMMUTABLE_FEATURES: FeatureFlags
pub const ALLOWED_IMMUTABLE_FEATURES: FeatureFlags
The set of allowed immutable Features for an AliasOutput.
Sourcepub fn build_with_amount(amount: u64, alias_id: AliasId) -> AliasOutputBuilder
pub fn build_with_amount(amount: u64, alias_id: AliasId) -> AliasOutputBuilder
Creates a new AliasOutputBuilder with a provided amount.
Sourcepub fn native_tokens(&self) -> &NativeTokens
pub fn native_tokens(&self) -> &NativeTokens
Sourcepub fn alias_id_non_null(&self, output_id: &OutputId) -> AliasId
pub fn alias_id_non_null(&self, output_id: &OutputId) -> AliasId
Returns the alias ID if not null, or creates it from the output ID.
Sourcepub fn state_index(&self) -> u32
pub fn state_index(&self) -> u32
Sourcepub fn state_metadata(&self) -> &[u8] ⓘ
pub fn state_metadata(&self) -> &[u8] ⓘ
Sourcepub fn foundry_counter(&self) -> u32
pub fn foundry_counter(&self) -> u32
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 state_controller_address(&self) -> &Address
pub fn state_controller_address(&self) -> &Address
Sourcepub fn governor_address(&self) -> &Address
pub fn governor_address(&self) -> &Address
Sourcepub fn alias_address(&self, output_id: &OutputId) -> AliasAddress
pub fn alias_address(&self, output_id: &OutputId) -> AliasAddress
Returns the alias address for this output.
Trait Implementations§
Source§impl Clone for AliasOutput
impl Clone for AliasOutput
Source§fn clone(&self) -> AliasOutput
fn clone(&self) -> AliasOutput
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 AliasOutput
impl Debug for AliasOutput
Source§impl From<&AliasOutput> for AliasOutputBuilder
impl From<&AliasOutput> for AliasOutputBuilder
Source§fn from(output: &AliasOutput) -> Self
fn from(output: &AliasOutput) -> Self
Converts to this type from the input type.
Source§impl From<AliasOutput> for Output
impl From<AliasOutput> for Output
Source§fn from(value: AliasOutput) -> Self
fn from(value: AliasOutput) -> Self
Converts to this type from the input type.
Source§impl Hash for AliasOutput
impl Hash for AliasOutput
Source§impl Ord for AliasOutput
impl Ord for AliasOutput
Source§fn cmp(&self, other: &AliasOutput) -> Ordering
fn cmp(&self, other: &AliasOutput) -> 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 AliasOutput
impl Packable for AliasOutput
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 AliasOutput
impl PartialEq for AliasOutput
Source§impl PartialOrd for AliasOutput
impl PartialOrd for AliasOutput
impl Eq for AliasOutput
impl StructuralPartialEq for AliasOutput
Auto Trait Implementations§
impl Freeze for AliasOutput
impl RefUnwindSafe for AliasOutput
impl Send for AliasOutput
impl Sync for AliasOutput
impl Unpin for AliasOutput
impl UnwindSafe for AliasOutput
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.