Struct iota_sdk::wallet::MintNftParams
source · pub struct MintNftParams { /* private fields */ }
Available on crate feature
wallet
only.Expand description
Address and NFT for send_nft()
.
Implementations§
source§impl MintNftParams
impl MintNftParams
sourcepub fn address(&self) -> &Option<Bech32Address>
pub fn address(&self) -> &Option<Bech32Address>
Bech32 encoded address to which the NFT will be minted. Default will use the first address of the account.
sourcepub fn sender(&self) -> &Option<Bech32Address>
pub fn sender(&self) -> &Option<Bech32Address>
NFT sender feature.
sourcepub fn issuer(&self) -> &Option<Bech32Address>
pub fn issuer(&self) -> &Option<Bech32Address>
NFT issuer feature.
sourcepub fn immutable_metadata(&self) -> &Option<Vec<u8>>
pub fn immutable_metadata(&self) -> &Option<Vec<u8>>
NFT immutable metadata feature.
source§impl MintNftParams
impl MintNftParams
pub fn new() -> Self
sourcepub fn try_with_address(
self,
address: impl ConvertTo<Bech32Address>
) -> Result<Self>
pub fn try_with_address( self, address: impl ConvertTo<Bech32Address> ) -> Result<Self>
Set the address and try convert to Bech32Address
sourcepub fn with_address(self, address: impl Into<Option<Bech32Address>>) -> Self
pub fn with_address(self, address: impl Into<Option<Bech32Address>>) -> Self
Set the address
sourcepub fn try_with_sender(
self,
sender: impl ConvertTo<Bech32Address>
) -> Result<Self>
pub fn try_with_sender( self, sender: impl ConvertTo<Bech32Address> ) -> Result<Self>
Set the sender address and try convert to Bech32Address
sourcepub fn with_sender(self, sender: impl Into<Option<Bech32Address>>) -> Self
pub fn with_sender(self, sender: impl Into<Option<Bech32Address>>) -> Self
Set the sender address
sourcepub fn try_with_issuer(
self,
issuer: impl ConvertTo<Bech32Address>
) -> Result<Self>
pub fn try_with_issuer( self, issuer: impl ConvertTo<Bech32Address> ) -> Result<Self>
Set the issuer address and try convert to Bech32Address
sourcepub fn with_issuer(self, issuer: impl Into<Option<Bech32Address>>) -> Self
pub fn with_issuer(self, issuer: impl Into<Option<Bech32Address>>) -> Self
Set the issuer address
Trait Implementations§
source§impl Clone for MintNftParams
impl Clone for MintNftParams
source§fn clone(&self) -> MintNftParams
fn clone(&self) -> MintNftParams
Returns a copy 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 Debug for MintNftParams
impl Debug for MintNftParams
source§impl Default for MintNftParams
impl Default for MintNftParams
source§fn default() -> MintNftParams
fn default() -> MintNftParams
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MintNftParams
impl<'de> Deserialize<'de> for MintNftParams
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MintNftParams
impl RefUnwindSafe for MintNftParams
impl Send for MintNftParams
impl Sync for MintNftParams
impl Unpin for MintNftParams
impl UnwindSafe for MintNftParams
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> 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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more