Struct identity_iota::iota::block::output::foundry::FoundryOutputBuilder
source · pub struct FoundryOutputBuilder { /* private fields */ }
Expand description
Implementations§
source§impl FoundryOutputBuilder
impl FoundryOutputBuilder
sourcepub fn new_with_amount(
amount: u64,
serial_number: u32,
token_scheme: TokenScheme
) -> FoundryOutputBuilder
pub fn new_with_amount( amount: u64, serial_number: u32, token_scheme: TokenScheme ) -> FoundryOutputBuilder
Creates a FoundryOutputBuilder
with a provided amount.
sourcepub fn new_with_minimum_storage_deposit(
rent_structure: RentStructure,
serial_number: u32,
token_scheme: TokenScheme
) -> FoundryOutputBuilder
pub fn new_with_minimum_storage_deposit( rent_structure: RentStructure, serial_number: u32, token_scheme: TokenScheme ) -> FoundryOutputBuilder
Creates a FoundryOutputBuilder
with a provided rent structure.
The amount will be set to the minimum storage deposit.
sourcepub fn with_amount(self, amount: u64) -> FoundryOutputBuilder
pub fn with_amount(self, amount: u64) -> FoundryOutputBuilder
Sets the amount to the provided value.
sourcepub fn with_minimum_storage_deposit(
self,
rent_structure: RentStructure
) -> FoundryOutputBuilder
pub fn with_minimum_storage_deposit( self, rent_structure: RentStructure ) -> FoundryOutputBuilder
Sets the amount to the minimum storage deposit.
sourcepub fn add_native_token(self, native_token: NativeToken) -> FoundryOutputBuilder
pub fn add_native_token(self, native_token: NativeToken) -> FoundryOutputBuilder
sourcepub fn with_native_tokens(
self,
native_tokens: impl IntoIterator<Item = NativeToken>
) -> FoundryOutputBuilder
pub fn with_native_tokens( self, native_tokens: impl IntoIterator<Item = NativeToken> ) -> FoundryOutputBuilder
sourcepub fn with_serial_number(self, serial_number: u32) -> FoundryOutputBuilder
pub fn with_serial_number(self, serial_number: u32) -> FoundryOutputBuilder
Sets the serial number to the provided value.
sourcepub fn with_token_scheme(
self,
token_scheme: TokenScheme
) -> FoundryOutputBuilder
pub fn with_token_scheme( self, token_scheme: TokenScheme ) -> FoundryOutputBuilder
Sets the token scheme to the provided value.
sourcepub fn add_unlock_condition(
self,
unlock_condition: impl Into<UnlockCondition>
) -> FoundryOutputBuilder
pub fn add_unlock_condition( self, unlock_condition: impl Into<UnlockCondition> ) -> FoundryOutputBuilder
Adds an UnlockCondition
to the builder, if one does not already exist of that type.
sourcepub fn with_unlock_conditions(
self,
unlock_conditions: impl IntoIterator<Item = impl Into<UnlockCondition>>
) -> FoundryOutputBuilder
pub fn with_unlock_conditions( self, unlock_conditions: impl IntoIterator<Item = impl Into<UnlockCondition>> ) -> FoundryOutputBuilder
Sets the UnlockConditions
s in the builder, overwriting any existing values.
sourcepub fn replace_unlock_condition(
self,
unlock_condition: impl Into<UnlockCondition>
) -> FoundryOutputBuilder
pub fn replace_unlock_condition( self, unlock_condition: impl Into<UnlockCondition> ) -> FoundryOutputBuilder
Replaces an UnlockCondition
of the builder with a new one, or adds it.
sourcepub fn clear_unlock_conditions(self) -> FoundryOutputBuilder
pub fn clear_unlock_conditions(self) -> FoundryOutputBuilder
Clears all UnlockConditions
s from the builder.
sourcepub fn add_feature(self, feature: impl Into<Feature>) -> FoundryOutputBuilder
pub fn add_feature(self, feature: impl Into<Feature>) -> FoundryOutputBuilder
Adds a Feature
to the builder, if one does not already exist of that type.
sourcepub fn with_features(
self,
features: impl IntoIterator<Item = impl Into<Feature>>
) -> FoundryOutputBuilder
pub fn with_features( self, features: impl IntoIterator<Item = impl Into<Feature>> ) -> FoundryOutputBuilder
Sets the Feature
s in the builder, overwriting any existing values.
sourcepub fn replace_feature(
self,
feature: impl Into<Feature>
) -> FoundryOutputBuilder
pub fn replace_feature( self, feature: impl Into<Feature> ) -> FoundryOutputBuilder
Replaces a Feature
of the builder with a new one, or adds it.
sourcepub fn clear_features(self) -> FoundryOutputBuilder
pub fn clear_features(self) -> FoundryOutputBuilder
Clears all Feature
s from the builder.
sourcepub fn add_immutable_feature(
self,
immutable_feature: impl Into<Feature>
) -> FoundryOutputBuilder
pub fn add_immutable_feature( self, immutable_feature: impl Into<Feature> ) -> FoundryOutputBuilder
Adds an immutable Feature
to the builder, if one does not already exist of that type.
sourcepub fn with_immutable_features(
self,
immutable_features: impl IntoIterator<Item = impl Into<Feature>>
) -> FoundryOutputBuilder
pub fn with_immutable_features( self, immutable_features: impl IntoIterator<Item = impl Into<Feature>> ) -> FoundryOutputBuilder
Sets the immutable Feature
s in the builder, overwriting any existing values.
sourcepub fn replace_immutable_feature(
self,
immutable_feature: impl Into<Feature>
) -> FoundryOutputBuilder
pub fn replace_immutable_feature( self, immutable_feature: impl Into<Feature> ) -> FoundryOutputBuilder
Replaces an immutable Feature
of the builder with a new one, or adds it.
sourcepub fn clear_immutable_features(self) -> FoundryOutputBuilder
pub fn clear_immutable_features(self) -> FoundryOutputBuilder
Clears all immutable Feature
s from the builder.
sourcepub fn finish(self) -> Result<FoundryOutput, Error>
pub fn finish(self) -> Result<FoundryOutput, Error>
sourcepub fn finish_with_params<'a>(
self,
params: impl Into<ValidationParams<'a>> + Send
) -> Result<FoundryOutput, Error>
pub fn finish_with_params<'a>( self, params: impl Into<ValidationParams<'a>> + Send ) -> Result<FoundryOutput, Error>
sourcepub fn finish_output<'a>(
self,
params: impl Into<ValidationParams<'a>> + Send
) -> Result<Output, Error>
pub fn finish_output<'a>( self, params: impl Into<ValidationParams<'a>> + Send ) -> Result<Output, Error>
Finishes the FoundryOutputBuilder
into an Output
.
Trait Implementations§
source§impl Clone for FoundryOutputBuilder
impl Clone for FoundryOutputBuilder
source§fn clone(&self) -> FoundryOutputBuilder
fn clone(&self) -> FoundryOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more