objc2_cloud_kit/generated/
CKRecordID.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 CKRecordID;
14);
15
16unsafe impl Send for CKRecordID {}
17
18unsafe impl Sync for CKRecordID {}
19
20unsafe impl NSCoding for CKRecordID {}
21
22unsafe impl NSCopying for CKRecordID {}
23
24unsafe impl CopyingHelper for CKRecordID {
25 type Result = Self;
26}
27
28unsafe impl NSObjectProtocol for CKRecordID {}
29
30unsafe impl NSSecureCoding for CKRecordID {}
31
32impl CKRecordID {
33 extern_methods!(
34 #[unsafe(method(init))]
35 #[unsafe(method_family = init)]
36 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
37
38 #[unsafe(method(new))]
39 #[unsafe(method_family = new)]
40 pub unsafe fn new() -> Retained<Self>;
41
42 #[unsafe(method(initWithRecordName:))]
44 #[unsafe(method_family = init)]
45 pub unsafe fn initWithRecordName(
46 this: Allocated<Self>,
47 record_name: &NSString,
48 ) -> Retained<Self>;
49
50 #[cfg(feature = "CKRecordZoneID")]
51 #[unsafe(method(initWithRecordName:zoneID:))]
52 #[unsafe(method_family = init)]
53 pub unsafe fn initWithRecordName_zoneID(
54 this: Allocated<Self>,
55 record_name: &NSString,
56 zone_id: &CKRecordZoneID,
57 ) -> Retained<Self>;
58
59 #[unsafe(method(recordName))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn recordName(&self) -> Retained<NSString>;
62
63 #[cfg(feature = "CKRecordZoneID")]
64 #[unsafe(method(zoneID))]
65 #[unsafe(method_family = none)]
66 pub unsafe fn zoneID(&self) -> Retained<CKRecordZoneID>;
67 );
68}