pub struct Nfc {
pub encryption_public_key: Option<String>,
pub message: String,
}Expand description
Information used for Value Added Service Protocol transactions. Available in iOS 9.0.
Information about the NFC payload passed to an Apple Pay terminal.
Fields§
§encryption_public_key: Option<String>The public encryption key used by the Value Added Services protocol. Use a Base64 encoded X.509 SubjectPublicKeyInfo structure containing a ECDH public key for group P256.
message: StringThe payload to be transmitted to the Apple Pay terminal. Must be 64 bytes or less. Messages longer than 64 bytes are truncated by the system.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Nfc
impl<'de> Deserialize<'de> for Nfc
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Nfc
impl RefUnwindSafe for Nfc
impl Send for Nfc
impl Sync for Nfc
impl Unpin for Nfc
impl UnsafeUnpin for Nfc
impl UnwindSafe for Nfc
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