Struct ledger_mob_apdu::app_info::AppInfoResp
source · pub struct AppInfoResp<'a> {
pub proto: u8,
pub name: &'a str,
pub version: &'a str,
pub flags: AppFlags,
}
Expand description
Application information response APDU
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PROTO_VER | NAME_LEN | VERSION_LEN | FLAGS_LEN |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/ NAME... /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/ VERSION... /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/ FLAGS... /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§proto: u8
Protocol version (must be 1)
name: &'a str
Application name
version: &'a str
Application version
flags: AppFlags
Application flags
Implementations§
Trait Implementations§
source§impl<'a> Clone for AppInfoResp<'a>
impl<'a> Clone for AppInfoResp<'a>
source§fn clone(&self) -> AppInfoResp<'a>
fn clone(&self) -> AppInfoResp<'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 AppInfoResp<'a>
impl<'a> Debug for AppInfoResp<'a>
source§impl<'a> Decode<'a> for AppInfoResp<'a>
impl<'a> Decode<'a> for AppInfoResp<'a>
source§impl<'a> Encode for AppInfoResp<'a>
impl<'a> Encode for AppInfoResp<'a>
source§impl<'a> PartialEq<AppInfoResp<'a>> for AppInfoResp<'a>
impl<'a> PartialEq<AppInfoResp<'a>> for AppInfoResp<'a>
source§fn eq(&self, other: &AppInfoResp<'a>) -> bool
fn eq(&self, other: &AppInfoResp<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Copy for AppInfoResp<'a>
impl<'a> StructuralPartialEq for AppInfoResp<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for AppInfoResp<'a>
impl<'a> Send for AppInfoResp<'a>
impl<'a> Sync for AppInfoResp<'a>
impl<'a> Unpin for AppInfoResp<'a>
impl<'a> UnwindSafe for AppInfoResp<'a>
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
§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