Struct openpgp_card::card_do::ApplicationIdentifier
source · [−]pub struct ApplicationIdentifier { /* private fields */ }
Expand description
4.2.1 Application Identifier (AID)
Implementations
sourceimpl ApplicationIdentifier
impl ApplicationIdentifier
pub fn application(&self) -> u8
pub fn version(&self) -> u16
pub fn manufacturer(&self) -> u16
pub fn serial(&self) -> u32
sourcepub fn manufacturer_name(&self) -> &'static str
pub fn manufacturer_name(&self) -> &'static str
Mapping of manufacturer id to a name, data from: https://en.wikipedia.org/wiki/OpenPGP_card [2022-04-07]
sourcepub fn ident(&self) -> String
pub fn ident(&self) -> String
This ident is constructed as the concatenation of manufacturer id, a colon, and the card serial (in hexadecimal representation, with uppercase hex digits).
It is a more easily human-readable, shorter form of the full 16-byte AID (“Application Identifier”).
Example: “1234:5678ABCD”.
Trait Implementations
sourceimpl Debug for ApplicationIdentifier
impl Debug for ApplicationIdentifier
sourceimpl Display for ApplicationIdentifier
impl Display for ApplicationIdentifier
sourceimpl PartialEq<ApplicationIdentifier> for ApplicationIdentifier
impl PartialEq<ApplicationIdentifier> for ApplicationIdentifier
sourcefn eq(&self, other: &ApplicationIdentifier) -> bool
fn eq(&self, other: &ApplicationIdentifier) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ApplicationIdentifier) -> bool
fn ne(&self, other: &ApplicationIdentifier) -> bool
This method tests for !=
.
impl Eq for ApplicationIdentifier
impl StructuralEq for ApplicationIdentifier
impl StructuralPartialEq for ApplicationIdentifier
Auto Trait Implementations
impl RefUnwindSafe for ApplicationIdentifier
impl Send for ApplicationIdentifier
impl Sync for ApplicationIdentifier
impl Unpin for ApplicationIdentifier
impl UnwindSafe for ApplicationIdentifier
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more