Struct ledger_mob_apdu::tx::TxSetMessage
source · pub struct TxSetMessage<'a> {
pub message: &'a [u8],
}
Expand description
Set the message for the transaction
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| MESSAGE_LEN | RESERVED |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
/ MESSAGE /
/ (variable length) /
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§message: &'a [u8]
Message
for transaction, derived from prefix
Implementations§
Trait Implementations§
source§impl<'a> ApduStatic for TxSetMessage<'a>
impl<'a> ApduStatic for TxSetMessage<'a>
source§impl<'a> Clone for TxSetMessage<'a>
impl<'a> Clone for TxSetMessage<'a>
source§fn clone(&self) -> TxSetMessage<'a>
fn clone(&self) -> TxSetMessage<'a>
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<'a> Debug for TxSetMessage<'a>
impl<'a> Debug for TxSetMessage<'a>
source§impl<'a> Decode<'a> for TxSetMessage<'a>
impl<'a> Decode<'a> for TxSetMessage<'a>
source§impl<'a> Encode for TxSetMessage<'a>
impl<'a> Encode for TxSetMessage<'a>
source§impl<'a> PartialEq<TxSetMessage<'a>> for TxSetMessage<'a>
impl<'a> PartialEq<TxSetMessage<'a>> for TxSetMessage<'a>
source§fn eq(&self, other: &TxSetMessage<'a>) -> bool
fn eq(&self, other: &TxSetMessage<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for TxSetMessage<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for TxSetMessage<'a>
impl<'a> Send for TxSetMessage<'a>
impl<'a> Sync for TxSetMessage<'a>
impl<'a> Unpin for TxSetMessage<'a>
impl<'a> UnwindSafe for TxSetMessage<'a>
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