objc2_pass_kit/generated/
PKIdentityDocument.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// Represents the response of a request for an identity document.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/passkit/pkidentitydocument?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct PKIdentityDocument;
16);
17
18extern_conformance!(
19    unsafe impl NSObjectProtocol for PKIdentityDocument {}
20);
21
22impl PKIdentityDocument {
23    extern_methods!(
24        /// An encrypted data blob containing the requested document information and associated metadata.
25        /// This is encrypted to the public key on-file with the Developer portal for the calling app, and should
26        /// be passed to the server holding the corresponding private key for decryption.
27        /// This data is not intended to be read on-device.
28        #[unsafe(method(encryptedData))]
29        #[unsafe(method_family = none)]
30        pub unsafe fn encryptedData(&self) -> Retained<NSData>;
31
32        #[unsafe(method(init))]
33        #[unsafe(method_family = init)]
34        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
35
36        #[unsafe(method(new))]
37        #[unsafe(method_family = new)]
38        pub unsafe fn new() -> Retained<Self>;
39    );
40}