pub struct AliasOutputBuilder { /* private fields */ }Expand description
Implementations§
Source§impl AliasOutputBuilder
impl AliasOutputBuilder
Sourcepub fn new_with_amount(
amount: u64,
alias_id: AliasId,
) -> Result<AliasOutputBuilder, Error>
pub fn new_with_amount( amount: u64, alias_id: AliasId, ) -> Result<AliasOutputBuilder, Error>
Creates an AliasOutputBuilder with a provided amount.
Sourcepub fn new_with_minimum_storage_deposit(
rent_structure: RentStructure,
alias_id: AliasId,
) -> Result<AliasOutputBuilder, Error>
pub fn new_with_minimum_storage_deposit( rent_structure: RentStructure, alias_id: AliasId, ) -> Result<AliasOutputBuilder, Error>
Creates an AliasOutputBuilder with a provided rent structure.
The amount will be set to the minimum storage deposit.
Sourcepub fn with_amount(self, amount: u64) -> Result<Self, Error>
pub fn with_amount(self, amount: u64) -> Result<Self, Error>
Sets the amount to the provided value.
Sourcepub fn with_minimum_storage_deposit(self, rent_structure: RentStructure) -> Self
pub fn with_minimum_storage_deposit(self, rent_structure: RentStructure) -> Self
Sets the amount to the minimum storage deposit.
Sourcepub fn add_native_token(self, native_token: NativeToken) -> Self
pub fn add_native_token(self, native_token: NativeToken) -> Self
Sourcepub fn with_native_tokens(
self,
native_tokens: impl IntoIterator<Item = NativeToken>,
) -> Self
pub fn with_native_tokens( self, native_tokens: impl IntoIterator<Item = NativeToken>, ) -> Self
Sourcepub fn with_alias_id(self, alias_id: AliasId) -> Self
pub fn with_alias_id(self, alias_id: AliasId) -> Self
Sets the alias ID to the provided value.
Sourcepub fn with_state_index(self, state_index: u32) -> Self
pub fn with_state_index(self, state_index: u32) -> Self
Sourcepub fn with_state_metadata(self, state_metadata: Vec<u8>) -> Self
pub fn with_state_metadata(self, state_metadata: Vec<u8>) -> Self
Sourcepub fn with_foundry_counter(self, foundry_counter: u32) -> Self
pub fn with_foundry_counter(self, foundry_counter: u32) -> Self
Sourcepub fn add_unlock_condition(self, unlock_condition: UnlockCondition) -> Self
pub fn add_unlock_condition(self, unlock_condition: UnlockCondition) -> Self
Sourcepub fn with_unlock_conditions(
self,
unlock_conditions: impl IntoIterator<Item = UnlockCondition>,
) -> Self
pub fn with_unlock_conditions( self, unlock_conditions: impl IntoIterator<Item = UnlockCondition>, ) -> Self
Sourcepub fn replace_unlock_condition(
self,
unlock_condition: UnlockCondition,
) -> Result<Self, Error>
pub fn replace_unlock_condition( self, unlock_condition: UnlockCondition, ) -> Result<Self, Error>
Sourcepub fn add_feature(self, feature: Feature) -> Self
pub fn add_feature(self, feature: Feature) -> Self
Sourcepub fn with_features(self, features: impl IntoIterator<Item = Feature>) -> Self
pub fn with_features(self, features: impl IntoIterator<Item = Feature>) -> Self
Sourcepub fn replace_feature(self, feature: Feature) -> Result<Self, Error>
pub fn replace_feature(self, feature: Feature) -> Result<Self, Error>
Sourcepub fn add_immutable_feature(self, immutable_feature: Feature) -> Self
pub fn add_immutable_feature(self, immutable_feature: Feature) -> Self
Sourcepub fn with_immutable_features(
self,
immutable_features: impl IntoIterator<Item = Feature>,
) -> Self
pub fn with_immutable_features( self, immutable_features: impl IntoIterator<Item = Feature>, ) -> Self
Sourcepub fn replace_immutable_feature(
self,
immutable_feature: Feature,
) -> Result<Self, Error>
pub fn replace_immutable_feature( self, immutable_feature: Feature, ) -> Result<Self, Error>
Sourcepub fn finish_output(self, token_supply: u64) -> Result<Output, Error>
pub fn finish_output(self, token_supply: u64) -> Result<Output, Error>
Finishes the AliasOutputBuilder into an Output.
Trait Implementations§
Source§impl Clone for AliasOutputBuilder
impl Clone for AliasOutputBuilder
Source§fn clone(&self) -> AliasOutputBuilder
fn clone(&self) -> AliasOutputBuilder
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 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.
Auto Trait Implementations§
impl Freeze for AliasOutputBuilder
impl RefUnwindSafe for AliasOutputBuilder
impl Send for AliasOutputBuilder
impl Sync for AliasOutputBuilder
impl Unpin for AliasOutputBuilder
impl UnwindSafe for AliasOutputBuilder
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request