Struct identity_iota::iota::block::output::basic::BasicOutputBuilder
source · pub struct BasicOutputBuilder { /* private fields */ }
Expand description
Implementations§
source§impl BasicOutputBuilder
impl BasicOutputBuilder
sourcepub fn new_with_amount(amount: u64) -> BasicOutputBuilder
pub fn new_with_amount(amount: u64) -> BasicOutputBuilder
Creates a BasicOutputBuilder
with a provided amount.
sourcepub fn new_with_minimum_storage_deposit(
rent_structure: RentStructure
) -> BasicOutputBuilder
pub fn new_with_minimum_storage_deposit( rent_structure: RentStructure ) -> BasicOutputBuilder
Creates an BasicOutputBuilder
with a provided rent structure.
The amount will be set to the minimum storage deposit.
sourcepub fn with_amount(self, amount: u64) -> BasicOutputBuilder
pub fn with_amount(self, amount: u64) -> BasicOutputBuilder
Sets the amount to the provided value.
sourcepub fn with_minimum_storage_deposit(
self,
rent_structure: RentStructure
) -> BasicOutputBuilder
pub fn with_minimum_storage_deposit( self, rent_structure: RentStructure ) -> BasicOutputBuilder
Sets the amount to the minimum storage deposit.
sourcepub fn add_native_token(self, native_token: NativeToken) -> BasicOutputBuilder
pub fn add_native_token(self, native_token: NativeToken) -> BasicOutputBuilder
sourcepub fn with_native_tokens(
self,
native_tokens: impl IntoIterator<Item = NativeToken>
) -> BasicOutputBuilder
pub fn with_native_tokens( self, native_tokens: impl IntoIterator<Item = NativeToken> ) -> BasicOutputBuilder
sourcepub fn add_unlock_condition(
self,
unlock_condition: impl Into<UnlockCondition>
) -> BasicOutputBuilder
pub fn add_unlock_condition( self, unlock_condition: impl Into<UnlockCondition> ) -> BasicOutputBuilder
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>>
) -> BasicOutputBuilder
pub fn with_unlock_conditions( self, unlock_conditions: impl IntoIterator<Item = impl Into<UnlockCondition>> ) -> BasicOutputBuilder
Sets the UnlockConditions
s in the builder, overwriting any existing values.
sourcepub fn replace_unlock_condition(
self,
unlock_condition: impl Into<UnlockCondition>
) -> BasicOutputBuilder
pub fn replace_unlock_condition( self, unlock_condition: impl Into<UnlockCondition> ) -> BasicOutputBuilder
Replaces an UnlockCondition
of the builder with a new one, or adds it.
sourcepub fn clear_unlock_conditions(self) -> BasicOutputBuilder
pub fn clear_unlock_conditions(self) -> BasicOutputBuilder
Clears all UnlockConditions
s from the builder.
sourcepub fn add_feature(self, feature: impl Into<Feature>) -> BasicOutputBuilder
pub fn add_feature(self, feature: impl Into<Feature>) -> BasicOutputBuilder
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>>
) -> BasicOutputBuilder
pub fn with_features( self, features: impl IntoIterator<Item = impl Into<Feature>> ) -> BasicOutputBuilder
Sets the Feature
s in the builder, overwriting any existing values.
sourcepub fn replace_feature(self, feature: impl Into<Feature>) -> BasicOutputBuilder
pub fn replace_feature(self, feature: impl Into<Feature>) -> BasicOutputBuilder
Replaces a Feature
of the builder with a new one, or adds it.
sourcepub fn clear_features(self) -> BasicOutputBuilder
pub fn clear_features(self) -> BasicOutputBuilder
Clears all Feature
s from the builder.
sourcepub fn finish(self) -> Result<BasicOutput, Error>
pub fn finish(self) -> Result<BasicOutput, Error>
sourcepub fn finish_with_params<'a>(
self,
params: impl Into<ValidationParams<'a>> + Send
) -> Result<BasicOutput, Error>
pub fn finish_with_params<'a>( self, params: impl Into<ValidationParams<'a>> + Send ) -> Result<BasicOutput, 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 BasicOutputBuilder
into an Output
.
Trait Implementations§
source§impl Clone for BasicOutputBuilder
impl Clone for BasicOutputBuilder
source§fn clone(&self) -> BasicOutputBuilder
fn clone(&self) -> BasicOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more