objc2_cloud_kit/generated/
CKShareMetadata.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 CKShareMetadata;
14);
15
16extern_conformance!(
17 unsafe impl NSCoding for CKShareMetadata {}
18);
19
20extern_conformance!(
21 unsafe impl NSCopying for CKShareMetadata {}
22);
23
24unsafe impl CopyingHelper for CKShareMetadata {
25 type Result = Self;
26}
27
28extern_conformance!(
29 unsafe impl NSObjectProtocol for CKShareMetadata {}
30);
31
32extern_conformance!(
33 unsafe impl NSSecureCoding for CKShareMetadata {}
34);
35
36impl CKShareMetadata {
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(containerIdentifier))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn containerIdentifier(&self) -> Retained<NSString>;
49
50 #[cfg(all(feature = "CKRecord", feature = "CKShare"))]
51 #[unsafe(method(share))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn share(&self) -> Retained<CKShare>;
54
55 #[cfg(feature = "CKRecordID")]
56 #[unsafe(method(hierarchicalRootRecordID))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn hierarchicalRootRecordID(&self) -> Option<Retained<CKRecordID>>;
59
60 #[cfg(feature = "CKShareParticipant")]
61 #[unsafe(method(participantRole))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn participantRole(&self) -> CKShareParticipantRole;
65
66 #[cfg(feature = "CKShareParticipant")]
67 #[unsafe(method(participantStatus))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn participantStatus(&self) -> CKShareParticipantAcceptanceStatus;
70
71 #[cfg(feature = "CKShareParticipant")]
72 #[unsafe(method(participantPermission))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn participantPermission(&self) -> CKShareParticipantPermission;
75
76 #[cfg(feature = "CKUserIdentity")]
77 #[unsafe(method(ownerIdentity))]
78 #[unsafe(method_family = none)]
79 pub unsafe fn ownerIdentity(&self) -> Retained<CKUserIdentity>;
80
81 #[cfg(feature = "CKRecord")]
82 #[unsafe(method(rootRecord))]
84 #[unsafe(method_family = none)]
85 pub unsafe fn rootRecord(&self) -> Option<Retained<CKRecord>>;
86
87 #[cfg(feature = "CKShareParticipant")]
88 #[deprecated]
89 #[unsafe(method(participantType))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn participantType(&self) -> CKShareParticipantType;
92
93 #[cfg(feature = "CKRecordID")]
94 #[deprecated]
95 #[unsafe(method(rootRecordID))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn rootRecordID(&self) -> Retained<CKRecordID>;
98 );
99}