pub struct BasicOutputBuilder { /* private fields */ }
Expand description

Implementations§

source§

impl BasicOutputBuilder

source

pub fn new_with_amount(amount: u64) -> BasicOutputBuilder

Creates a BasicOutputBuilder with a provided amount.

source

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.

source

pub fn with_amount(self, amount: u64) -> BasicOutputBuilder

Sets the amount to the provided value.

source

pub fn with_minimum_storage_deposit( self, rent_structure: RentStructure ) -> BasicOutputBuilder

Sets the amount to the minimum storage deposit.

source

pub fn add_native_token(self, native_token: NativeToken) -> BasicOutputBuilder

source

pub fn with_native_tokens( self, native_tokens: impl IntoIterator<Item = NativeToken> ) -> BasicOutputBuilder

source

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.

source

pub fn with_unlock_conditions( self, unlock_conditions: impl IntoIterator<Item = impl Into<UnlockCondition>> ) -> BasicOutputBuilder

Sets the UnlockConditionss in the builder, overwriting any existing values.

source

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.

source

pub fn clear_unlock_conditions(self) -> BasicOutputBuilder

Clears all UnlockConditionss from the builder.

source

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.

source

pub fn with_features( self, features: impl IntoIterator<Item = impl Into<Feature>> ) -> BasicOutputBuilder

Sets the Features in the builder, overwriting any existing values.

source

pub fn replace_feature(self, feature: impl Into<Feature>) -> BasicOutputBuilder

Replaces a Feature of the builder with a new one, or adds it.

source

pub fn clear_features(self) -> BasicOutputBuilder

Clears all Features from the builder.

source

pub fn finish(self) -> Result<BasicOutput, Error>

source

pub fn finish_with_params<'a>( self, params: impl Into<ValidationParams<'a>> + Send ) -> Result<BasicOutput, Error>

source

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

source§

fn clone(&self) -> BasicOutputBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl From<&BasicOutput> for BasicOutputBuilder

source§

fn from(output: &BasicOutput) -> BasicOutputBuilder

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> ConvertTo<T> for T
where T: Send,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more