objc2_pass_kit/generated/
PKIdentityDocumentDescriptor.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_protocol!(
11 pub unsafe trait PKIdentityDocumentDescriptor: NSObjectProtocol {
17 #[cfg(feature = "PKIdentityElement")]
18 #[unsafe(method(elements))]
20 #[unsafe(method_family = none)]
21 unsafe fn elements(&self) -> Retained<NSArray<PKIdentityElement>>;
22
23 #[cfg(all(feature = "PKIdentityElement", feature = "PKIdentityIntentToStore"))]
24 #[unsafe(method(intentToStoreForElement:))]
26 #[unsafe(method_family = none)]
27 unsafe fn intentToStoreForElement(
28 &self,
29 element: &PKIdentityElement,
30 ) -> Option<Retained<PKIdentityIntentToStore>>;
31
32 #[cfg(all(feature = "PKIdentityElement", feature = "PKIdentityIntentToStore"))]
33 #[unsafe(method(addElements:withIntentToStore:))]
37 #[unsafe(method_family = none)]
38 unsafe fn addElements_withIntentToStore(
39 &self,
40 elements: &NSArray<PKIdentityElement>,
41 intent_to_store: &PKIdentityIntentToStore,
42 );
43 }
44);
45
46extern_class!(
47 #[unsafe(super(NSObject))]
51 #[derive(Debug, PartialEq, Eq, Hash)]
52 pub struct PKIdentityDriversLicenseDescriptor;
53);
54
55extern_conformance!(
56 unsafe impl NSObjectProtocol for PKIdentityDriversLicenseDescriptor {}
57);
58
59extern_conformance!(
60 unsafe impl PKIdentityDocumentDescriptor for PKIdentityDriversLicenseDescriptor {}
61);
62
63impl PKIdentityDriversLicenseDescriptor {
64 extern_methods!();
65}
66
67impl PKIdentityDriversLicenseDescriptor {
69 extern_methods!(
70 #[unsafe(method(init))]
71 #[unsafe(method_family = init)]
72 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
73
74 #[unsafe(method(new))]
75 #[unsafe(method_family = new)]
76 pub unsafe fn new() -> Retained<Self>;
77 );
78}
79
80extern_class!(
81 #[unsafe(super(NSObject))]
85 #[derive(Debug, PartialEq, Eq, Hash)]
86 pub struct PKIdentityNationalIDCardDescriptor;
87);
88
89extern_conformance!(
90 unsafe impl NSObjectProtocol for PKIdentityNationalIDCardDescriptor {}
91);
92
93extern_conformance!(
94 unsafe impl PKIdentityDocumentDescriptor for PKIdentityNationalIDCardDescriptor {}
95);
96
97impl PKIdentityNationalIDCardDescriptor {
98 extern_methods!(
99 #[unsafe(method(regionCode))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn regionCode(&self) -> Option<Retained<NSString>>;
103
104 #[unsafe(method(setRegionCode:))]
106 #[unsafe(method_family = none)]
107 pub unsafe fn setRegionCode(&self, region_code: Option<&NSString>);
108 );
109}
110
111impl PKIdentityNationalIDCardDescriptor {
113 extern_methods!(
114 #[unsafe(method(init))]
115 #[unsafe(method_family = init)]
116 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
117
118 #[unsafe(method(new))]
119 #[unsafe(method_family = new)]
120 pub unsafe fn new() -> Retained<Self>;
121 );
122}