Struct identity_iota::iota::block::payload::treasury_transaction::dto::TreasuryTransactionPayloadDto
source · pub struct TreasuryTransactionPayloadDto {
pub kind: u32,
pub input: InputDto,
pub output: OutputDto,
}
Expand description
The payload type to define a treasury transaction.
Fields§
§kind: u32
§input: InputDto
§output: OutputDto
Trait Implementations§
source§impl Clone for TreasuryTransactionPayloadDto
impl Clone for TreasuryTransactionPayloadDto
source§fn clone(&self) -> TreasuryTransactionPayloadDto
fn clone(&self) -> TreasuryTransactionPayloadDto
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<'de> Deserialize<'de> for TreasuryTransactionPayloadDto
impl<'de> Deserialize<'de> for TreasuryTransactionPayloadDto
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<TreasuryTransactionPayloadDto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<TreasuryTransactionPayloadDto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&TreasuryTransactionPayload> for TreasuryTransactionPayloadDto
impl From<&TreasuryTransactionPayload> for TreasuryTransactionPayloadDto
source§fn from(value: &TreasuryTransactionPayload) -> TreasuryTransactionPayloadDto
fn from(value: &TreasuryTransactionPayload) -> TreasuryTransactionPayloadDto
Converts to this type from the input type.
source§impl From<TreasuryTransactionPayloadDto> for PayloadDto
impl From<TreasuryTransactionPayloadDto> for PayloadDto
source§fn from(payload: TreasuryTransactionPayloadDto) -> PayloadDto
fn from(payload: TreasuryTransactionPayloadDto) -> PayloadDto
Converts to this type from the input type.
source§impl PartialEq for TreasuryTransactionPayloadDto
impl PartialEq for TreasuryTransactionPayloadDto
source§fn eq(&self, other: &TreasuryTransactionPayloadDto) -> bool
fn eq(&self, other: &TreasuryTransactionPayloadDto) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TreasuryTransactionPayloadDto
impl Serialize for TreasuryTransactionPayloadDto
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 TreasuryTransactionPayloadDto
impl StructuralPartialEq for TreasuryTransactionPayloadDto
Auto Trait Implementations§
impl Freeze for TreasuryTransactionPayloadDto
impl RefUnwindSafe for TreasuryTransactionPayloadDto
impl Send for TreasuryTransactionPayloadDto
impl Sync for TreasuryTransactionPayloadDto
impl Unpin for TreasuryTransactionPayloadDto
impl UnwindSafe for TreasuryTransactionPayloadDto
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
.