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
16unsafe impl NSCoding for CKUserIdentityLookupInfo {}
17
18unsafe impl NSCopying for CKUserIdentityLookupInfo {}
19
20unsafe impl CopyingHelper for CKUserIdentityLookupInfo {
21 type Result = Self;
22}
23
24unsafe impl NSObjectProtocol for CKUserIdentityLookupInfo {}
25
26unsafe impl NSSecureCoding for CKUserIdentityLookupInfo {}
27
28impl CKUserIdentityLookupInfo {
29 extern_methods!(
30 #[unsafe(method(init))]
31 #[unsafe(method_family = init)]
32 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
33
34 #[unsafe(method(new))]
35 #[unsafe(method_family = new)]
36 pub unsafe fn new() -> Retained<Self>;
37
38 #[unsafe(method(initWithEmailAddress:))]
39 #[unsafe(method_family = init)]
40 pub unsafe fn initWithEmailAddress(
41 this: Allocated<Self>,
42 email_address: &NSString,
43 ) -> Retained<Self>;
44
45 #[unsafe(method(initWithPhoneNumber:))]
46 #[unsafe(method_family = init)]
47 pub unsafe fn initWithPhoneNumber(
48 this: Allocated<Self>,
49 phone_number: &NSString,
50 ) -> Retained<Self>;
51
52 #[cfg(feature = "CKRecordID")]
53 #[unsafe(method(initWithUserRecordID:))]
54 #[unsafe(method_family = init)]
55 pub unsafe fn initWithUserRecordID(
56 this: Allocated<Self>,
57 user_record_id: &CKRecordID,
58 ) -> Retained<Self>;
59
60 #[unsafe(method(lookupInfosWithEmails:))]
61 #[unsafe(method_family = none)]
62 pub unsafe fn lookupInfosWithEmails(
63 emails: &NSArray<NSString>,
64 ) -> Retained<NSArray<CKUserIdentityLookupInfo>>;
65
66 #[unsafe(method(lookupInfosWithPhoneNumbers:))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn lookupInfosWithPhoneNumbers(
69 phone_numbers: &NSArray<NSString>,
70 ) -> Retained<NSArray<CKUserIdentityLookupInfo>>;
71
72 #[cfg(feature = "CKRecordID")]
73 #[unsafe(method(lookupInfosWithRecordIDs:))]
74 #[unsafe(method_family = none)]
75 pub unsafe fn lookupInfosWithRecordIDs(
76 record_i_ds: &NSArray<CKRecordID>,
77 ) -> Retained<NSArray<CKUserIdentityLookupInfo>>;
78
79 #[unsafe(method(emailAddress))]
80 #[unsafe(method_family = none)]
81 pub unsafe fn emailAddress(&self) -> Option<Retained<NSString>>;
82
83 #[unsafe(method(phoneNumber))]
84 #[unsafe(method_family = none)]
85 pub unsafe fn phoneNumber(&self) -> Option<Retained<NSString>>;
86
87 #[cfg(feature = "CKRecordID")]
88 #[unsafe(method(userRecordID))]
89 #[unsafe(method_family = none)]
90 pub unsafe fn userRecordID(&self) -> Option<Retained<CKRecordID>>;
91 );
92}