pub struct NfcRecord {
pub format: NFCTypeNameFormat,
pub kind: Vec<u8>,
pub id: Vec<u8>,
pub payload: Vec<u8>,
}Expand description
An NDEF record to be written to a tag.
Use NFCTypeNameFormat to describe how Self::kind must be interpreted.
Fields§
§format: NFCTypeNameFormatThe Type Name Format (TNF) of the record.
kind: Vec<u8>The record type, interpreted according to Self::format.
For NFCTypeNameFormat::NfcWellKnown records this is a Record Type Definition (RTD)
value such as [0x54] (RTD_TEXT) or [0x55] (RTD_URI).
id: Vec<u8>The record identifier. Can be empty.
payload: Vec<u8>The record payload bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NfcRecord
impl RefUnwindSafe for NfcRecord
impl Send for NfcRecord
impl Sync for NfcRecord
impl Unpin for NfcRecord
impl UnsafeUnpin for NfcRecord
impl UnwindSafe for NfcRecord
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