objc2_cloud_kit/generated/
CKUserIdentityLookupInfo.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct CKUserIdentityLookupInfo;
14);
15
16extern_conformance!(
17 unsafe impl NSCoding for CKUserIdentityLookupInfo {}
18);
19
20extern_conformance!(
21 unsafe impl NSCopying for CKUserIdentityLookupInfo {}
22);
23
24unsafe impl CopyingHelper for CKUserIdentityLookupInfo {
25 type Result = Self;
26}
27
28extern_conformance!(
29 unsafe impl NSObjectProtocol for CKUserIdentityLookupInfo {}
30);
31
32extern_conformance!(
33 unsafe impl NSSecureCoding for CKUserIdentityLookupInfo {}
34);
35
36impl CKUserIdentityLookupInfo {
37 extern_methods!(
38 #[unsafe(method(init))]
39 #[unsafe(method_family = init)]
40 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
41
42 #[unsafe(method(new))]
43 #[unsafe(method_family = new)]
44 pub unsafe fn new() -> Retained<Self>;
45
46 #[unsafe(method(initWithEmailAddress:))]
47 #[unsafe(method_family = init)]
48 pub unsafe fn initWithEmailAddress(
49 this: Allocated<Self>,
50 email_address: &NSString,
51 ) -> Retained<Self>;
52
53 #[unsafe(method(initWithPhoneNumber:))]
54 #[unsafe(method_family = init)]
55 pub unsafe fn initWithPhoneNumber(
56 this: Allocated<Self>,
57 phone_number: &NSString,
58 ) -> Retained<Self>;
59
60 #[cfg(feature = "CKRecordID")]
61 #[unsafe(method(initWithUserRecordID:))]
62 #[unsafe(method_family = init)]
63 pub unsafe fn initWithUserRecordID(
64 this: Allocated<Self>,
65 user_record_id: &CKRecordID,
66 ) -> Retained<Self>;
67
68 #[unsafe(method(lookupInfosWithEmails:))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn lookupInfosWithEmails(
71 emails: &NSArray<NSString>,
72 ) -> Retained<NSArray<CKUserIdentityLookupInfo>>;
73
74 #[unsafe(method(lookupInfosWithPhoneNumbers:))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn lookupInfosWithPhoneNumbers(
77 phone_numbers: &NSArray<NSString>,
78 ) -> Retained<NSArray<CKUserIdentityLookupInfo>>;
79
80 #[cfg(feature = "CKRecordID")]
81 #[unsafe(method(lookupInfosWithRecordIDs:))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn lookupInfosWithRecordIDs(
84 record_i_ds: &NSArray<CKRecordID>,
85 ) -> Retained<NSArray<CKUserIdentityLookupInfo>>;
86
87 #[unsafe(method(emailAddress))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn emailAddress(&self) -> Option<Retained<NSString>>;
90
91 #[unsafe(method(phoneNumber))]
92 #[unsafe(method_family = none)]
93 pub unsafe fn phoneNumber(&self) -> Option<Retained<NSString>>;
94
95 #[cfg(feature = "CKRecordID")]
96 #[unsafe(method(userRecordID))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn userRecordID(&self) -> Option<Retained<CKRecordID>>;
99 );
100}