Struct identity_iota::iota::block::output::dto::AliasOutputDto
source · pub struct AliasOutputDto {
pub kind: u8,
pub amount: String,
pub native_tokens: Vec<NativeToken>,
pub alias_id: AliasId,
pub state_index: u32,
pub state_metadata: Box<[u8]>,
pub foundry_counter: u32,
pub unlock_conditions: Vec<UnlockConditionDto>,
pub features: Vec<FeatureDto>,
pub immutable_features: Vec<FeatureDto>,
}
Expand description
Describes an alias account in the ledger that can be controlled by the state and governance controllers.
Fields§
§kind: u8
§amount: String
§native_tokens: Vec<NativeToken>
§alias_id: AliasId
§state_index: u32
§state_metadata: Box<[u8]>
§foundry_counter: u32
§unlock_conditions: Vec<UnlockConditionDto>
§features: Vec<FeatureDto>
§immutable_features: Vec<FeatureDto>
Trait Implementations§
source§impl Clone for AliasOutputDto
impl Clone for AliasOutputDto
source§fn clone(&self) -> AliasOutputDto
fn clone(&self) -> AliasOutputDto
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 AliasOutputDto
impl Debug for AliasOutputDto
source§impl<'de> Deserialize<'de> for AliasOutputDto
impl<'de> Deserialize<'de> for AliasOutputDto
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AliasOutputDto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<AliasOutputDto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&AliasOutput> for AliasOutputDto
impl From<&AliasOutput> for AliasOutputDto
source§fn from(value: &AliasOutput) -> AliasOutputDto
fn from(value: &AliasOutput) -> AliasOutputDto
Converts to this type from the input type.
source§impl From<AliasOutputDto> for OutputDto
impl From<AliasOutputDto> for OutputDto
source§fn from(original: AliasOutputDto) -> OutputDto
fn from(original: AliasOutputDto) -> OutputDto
Converts to this type from the input type.
source§impl PartialEq for AliasOutputDto
impl PartialEq for AliasOutputDto
source§fn eq(&self, other: &AliasOutputDto) -> bool
fn eq(&self, other: &AliasOutputDto) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AliasOutputDto
impl Serialize for AliasOutputDto
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 AliasOutputDto
impl StructuralPartialEq for AliasOutputDto
Auto Trait Implementations§
impl Freeze for AliasOutputDto
impl RefUnwindSafe for AliasOutputDto
impl Send for AliasOutputDto
impl Sync for AliasOutputDto
impl Unpin for AliasOutputDto
impl UnwindSafe for AliasOutputDto
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
.