Struct bee_block::output::NftOutputBuilder
source · [−]pub struct NftOutputBuilder { /* private fields */ }Expand description
Implementations
sourceimpl NftOutputBuilder
impl NftOutputBuilder
sourcepub fn new_with_amount(
amount: u64,
nft_id: NftId
) -> Result<NftOutputBuilder, Error>
pub fn new_with_amount(
amount: u64,
nft_id: NftId
) -> Result<NftOutputBuilder, Error>
Creates an NftOutputBuilder with a provided amount.
sourcepub fn new_with_minimum_storage_deposit(
rent_structure: RentStructure,
nft_id: NftId
) -> Result<NftOutputBuilder, Error>
pub fn new_with_minimum_storage_deposit(
rent_structure: RentStructure,
nft_id: NftId
) -> Result<NftOutputBuilder, Error>
Creates an NftOutputBuilder 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_nft_id(self, nft_id: NftId) -> Self
pub fn with_nft_id(self, nft_id: NftId) -> Self
Sets the NFT ID to the provided value.
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) -> Result<Output, Error>
pub fn finish_output(self) -> Result<Output, Error>
Finishes the NftOutputBuilder into an Output.
Trait Implementations
sourceimpl Clone for NftOutputBuilder
impl Clone for NftOutputBuilder
sourcefn clone(&self) -> NftOutputBuilder
fn clone(&self) -> NftOutputBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for NftOutputBuilder
impl Send for NftOutputBuilder
impl Sync for NftOutputBuilder
impl Unpin for NftOutputBuilder
impl UnwindSafe for NftOutputBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T in a tonic::Request
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more