Struct identity_iota::iota::block::output::dto::NftOutputDto
source · pub struct NftOutputDto {
pub kind: u8,
pub amount: String,
pub native_tokens: Vec<NativeToken>,
pub nft_id: NftId,
pub unlock_conditions: Vec<UnlockConditionDto>,
pub features: Vec<FeatureDto>,
pub immutable_features: Vec<FeatureDto>,
}
Expand description
Describes an NFT output, a globally unique token with metadata attached.
Fields§
§kind: u8
§amount: String
§native_tokens: Vec<NativeToken>
§nft_id: NftId
§unlock_conditions: Vec<UnlockConditionDto>
§features: Vec<FeatureDto>
§immutable_features: Vec<FeatureDto>
Trait Implementations§
source§impl Clone for NftOutputDto
impl Clone for NftOutputDto
source§fn clone(&self) -> NftOutputDto
fn clone(&self) -> NftOutputDto
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 NftOutputDto
impl Debug for NftOutputDto
source§impl<'de> Deserialize<'de> for NftOutputDto
impl<'de> Deserialize<'de> for NftOutputDto
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NftOutputDto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<NftOutputDto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&NftOutput> for NftOutputDto
impl From<&NftOutput> for NftOutputDto
source§fn from(value: &NftOutput) -> NftOutputDto
fn from(value: &NftOutput) -> NftOutputDto
Converts to this type from the input type.
source§impl From<NftOutputDto> for OutputDto
impl From<NftOutputDto> for OutputDto
source§fn from(original: NftOutputDto) -> OutputDto
fn from(original: NftOutputDto) -> OutputDto
Converts to this type from the input type.
source§impl PartialEq for NftOutputDto
impl PartialEq for NftOutputDto
source§fn eq(&self, other: &NftOutputDto) -> bool
fn eq(&self, other: &NftOutputDto) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NftOutputDto
impl Serialize for NftOutputDto
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for NftOutputDto
impl StructuralPartialEq for NftOutputDto
Auto Trait Implementations§
impl Freeze for NftOutputDto
impl RefUnwindSafe for NftOutputDto
impl Send for NftOutputDto
impl Sync for NftOutputDto
impl Unpin for NftOutputDto
impl UnwindSafe for NftOutputDto
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
source§fn from_json(json: &(impl AsRef<str> + ?Sized)) -> Result<Self, Error>
fn from_json(json: &(impl AsRef<str> + ?Sized)) -> Result<Self, Error>
Deserialize
Self
from a string of JSON text.source§fn from_json_slice(json: &(impl AsRef<[u8]> + ?Sized)) -> Result<Self, Error>
fn from_json_slice(json: &(impl AsRef<[u8]> + ?Sized)) -> Result<Self, Error>
Deserialize
Self
from bytes of JSON text.source§fn from_json_value(json: Value) -> Result<Self, Error>
fn from_json_value(json: Value) -> Result<Self, Error>
Deserialize
Self
from a serde_json::Value
.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> ToJson for Twhere
T: Serialize,
impl<T> ToJson for Twhere
T: Serialize,
source§fn to_json_value(&self) -> Result<Value, Error>
fn to_json_value(&self) -> Result<Value, Error>
Serialize
self
as a serde_json::Value
.