Struct ledger_mob_apdu::tx::TxSummaryBuild
source · pub struct TxSummaryBuild {
pub fee_value: u64,
pub fee_token_id: u64,
pub tombstone_block: u64,
}
Expand description
Complete TxSummary building
Encoding:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| FEE_VALUE |
| (u64, 8-byte) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| FEE_TOKEN_ID |
| (u64, 8-byte) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| TOMBSTONE_BLOCK |
| (u64, 8-byte) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§fee_value: u64
§fee_token_id: u64
§tombstone_block: u64
Implementations§
source§impl TxSummaryBuild
impl TxSummaryBuild
sourcepub fn new(fee: Amount, tombstone_block: u64) -> Self
pub fn new(fee: Amount, tombstone_block: u64) -> Self
Create a new TxSummaryBuild APDU
sourcepub fn hash(&self) -> [u8; 32]
pub fn hash(&self) -> [u8; 32]
Compute hash for TxSummaryBuild
Trait Implementations§
source§impl ApduStatic for TxSummaryBuild
impl ApduStatic for TxSummaryBuild
source§impl Clone for TxSummaryBuild
impl Clone for TxSummaryBuild
source§fn clone(&self) -> TxSummaryBuild
fn clone(&self) -> TxSummaryBuild
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 TxSummaryBuild
impl Debug for TxSummaryBuild
source§impl<'dec> Decode<'dec> for TxSummaryBuild
impl<'dec> Decode<'dec> for TxSummaryBuild
source§impl Encode for TxSummaryBuild
impl Encode for TxSummaryBuild
source§impl PartialEq<TxSummaryBuild> for TxSummaryBuild
impl PartialEq<TxSummaryBuild> for TxSummaryBuild
source§fn eq(&self, other: &TxSummaryBuild) -> bool
fn eq(&self, other: &TxSummaryBuild) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TxSummaryBuild
Auto Trait Implementations§
impl RefUnwindSafe for TxSummaryBuild
impl Send for TxSummaryBuild
impl Sync for TxSummaryBuild
impl Unpin for TxSummaryBuild
impl UnwindSafe for TxSummaryBuild
Blanket Implementations§
§impl<'a, T> ApduReq<'a> for Twhere
T: EncDec<'a, ApduError> + ApduStatic,
impl<'a, T> ApduReq<'a> for Twhere T: EncDec<'a, ApduError> + ApduStatic,
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
§impl<'a, T> DecodeExt<'a> for Twhere
T: Decode<'a>,
impl<'a, T> DecodeExt<'a> for Twhere T: Decode<'a>,
§fn decode_iter(buff: &'a [u8]) -> DecodeIter<'a, Self::Output>
fn decode_iter(buff: &'a [u8]) -> DecodeIter<'a, Self::Output>
Helper to iterate over decodable objects in a sized buffer. Read more