Struct identity_iota::iota::block::payload::milestone::option::MigratedFundsEntry
source · pub struct MigratedFundsEntry { /* private fields */ }
Expand description
Describes funds which were migrated from a legacy network.
Implementations§
source§impl MigratedFundsEntry
impl MigratedFundsEntry
sourcepub const AMOUNT_MIN: u64 = 1_000_000u64
pub const AMOUNT_MIN: u64 = 1_000_000u64
Range of valid amounts for a MigratedFundsEntry
.
sourcepub fn new(
tail_transaction_hash: TailTransactionHash,
address: Address,
amount: u64,
token_supply: u64
) -> Result<MigratedFundsEntry, Error>
pub fn new( tail_transaction_hash: TailTransactionHash, address: Address, amount: u64, token_supply: u64 ) -> Result<MigratedFundsEntry, Error>
Creates a new MigratedFundsEntry
.
sourcepub fn tail_transaction_hash(&self) -> &TailTransactionHash
pub fn tail_transaction_hash(&self) -> &TailTransactionHash
Returns the tail transaction hash of a MigratedFundsEntry
.
sourcepub fn address(&self) -> &Address
pub fn address(&self) -> &Address
Returns the address of a MigratedFundsEntry
.
sourcepub fn amount(&self) -> u64
pub fn amount(&self) -> u64
Returns the amount of a MigratedFundsEntry
.
Trait Implementations§
source§impl Clone for MigratedFundsEntry
impl Clone for MigratedFundsEntry
source§fn clone(&self) -> MigratedFundsEntry
fn clone(&self) -> MigratedFundsEntry
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 MigratedFundsEntry
impl Debug for MigratedFundsEntry
source§impl From<&MigratedFundsEntry> for MigratedFundsEntryDto
impl From<&MigratedFundsEntry> for MigratedFundsEntryDto
source§fn from(value: &MigratedFundsEntry) -> MigratedFundsEntryDto
fn from(value: &MigratedFundsEntry) -> MigratedFundsEntryDto
Converts to this type from the input type.
source§impl Packable for MigratedFundsEntry
impl Packable for MigratedFundsEntry
§type UnpackError = <TailTransactionHash as Packable>::UnpackError
type UnpackError = <TailTransactionHash as Packable>::UnpackError
The error type that can be returned if some semantic error occurs while unpacking. Read more
§type UnpackVisitor = ProtocolParameters
type UnpackVisitor = ProtocolParameters
FIXME: docs
source§fn pack<P>(&self, packer: &mut P) -> Result<(), <P as Packer>::Error>where
P: Packer,
fn pack<P>(&self, packer: &mut P) -> Result<(), <P as Packer>::Error>where
P: Packer,
Packs this value into the given
Packer
.source§fn unpack<U, const VERIFY: bool>(
unpacker: &mut U,
visitor: &<MigratedFundsEntry as Packable>::UnpackVisitor
) -> Result<MigratedFundsEntry, UnpackError<<MigratedFundsEntry as Packable>::UnpackError, <U as Unpacker>::Error>>where
U: Unpacker,
fn unpack<U, const VERIFY: bool>(
unpacker: &mut U,
visitor: &<MigratedFundsEntry as Packable>::UnpackVisitor
) -> Result<MigratedFundsEntry, UnpackError<<MigratedFundsEntry as Packable>::UnpackError, <U as Unpacker>::Error>>where
U: Unpacker,
Unpacks this value from the given
Unpacker
. The VERIFY
generic parameter can be used to skip additional
syntactic checks.source§impl PartialEq for MigratedFundsEntry
impl PartialEq for MigratedFundsEntry
source§fn eq(&self, other: &MigratedFundsEntry) -> bool
fn eq(&self, other: &MigratedFundsEntry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFromDto for MigratedFundsEntry
impl TryFromDto for MigratedFundsEntry
type Dto = MigratedFundsEntryDto
type Error = Error
fn try_from_dto_with_params_inner( dto: <MigratedFundsEntry as TryFromDto>::Dto, params: ValidationParams<'_> ) -> Result<MigratedFundsEntry, <MigratedFundsEntry as TryFromDto>::Error>
fn try_from_dto(dto: Self::Dto) -> Result<Self, Self::Error>
fn try_from_dto_with_params<'a>( dto: Self::Dto, params: impl Into<ValidationParams<'a>> + Send ) -> Result<Self, Self::Error>
impl Eq for MigratedFundsEntry
impl StructuralPartialEq for MigratedFundsEntry
Auto Trait Implementations§
impl Freeze for MigratedFundsEntry
impl RefUnwindSafe for MigratedFundsEntry
impl Send for MigratedFundsEntry
impl Sync for MigratedFundsEntry
impl Unpin for MigratedFundsEntry
impl UnwindSafe for MigratedFundsEntry
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> 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<P> PackableExt for Pwhere
P: Packable,
impl<P> PackableExt for Pwhere
P: Packable,
source§fn unpack_verified<T>(
bytes: T,
visitor: &<P as Packable>::UnpackVisitor
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
fn unpack_verified<T>( bytes: T, visitor: &<P as Packable>::UnpackVisitor ) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
Unpacks this value from a type that implements [AsRef<[u8]>
].
source§fn unpack_unverified<T>(
bytes: T
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
fn unpack_unverified<T>( bytes: T ) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
Unpacks this value from a type that implements [AsRef<[u8]>
] skipping some syntatical checks.
source§fn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length in bytes of the value after being packed. The returned value always matches the number of
bytes written using
pack
.