objc2_cloud_kit/generated/
CKRecordZoneID.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/cloudkit/ckrecordzoneid?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct CKRecordZoneID;
14);
15
16extern_conformance!(
17    unsafe impl NSCoding for CKRecordZoneID {}
18);
19
20extern_conformance!(
21    unsafe impl NSCopying for CKRecordZoneID {}
22);
23
24unsafe impl CopyingHelper for CKRecordZoneID {
25    type Result = Self;
26}
27
28extern_conformance!(
29    unsafe impl NSObjectProtocol for CKRecordZoneID {}
30);
31
32extern_conformance!(
33    unsafe impl NSSecureCoding for CKRecordZoneID {}
34);
35
36impl CKRecordZoneID {
37    extern_methods!(
38        /// Zone names must be 255 characters or less. Most UTF-8 characters are valid.
39        #[unsafe(method(init))]
40        #[unsafe(method_family = init)]
41        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
42
43        #[unsafe(method(new))]
44        #[unsafe(method_family = new)]
45        pub unsafe fn new() -> Retained<Self>;
46
47        #[unsafe(method(initWithZoneName:ownerName:))]
48        #[unsafe(method_family = init)]
49        pub unsafe fn initWithZoneName_ownerName(
50            this: Allocated<Self>,
51            zone_name: &NSString,
52            owner_name: &NSString,
53        ) -> Retained<Self>;
54
55        #[unsafe(method(zoneName))]
56        #[unsafe(method_family = none)]
57        pub unsafe fn zoneName(&self) -> Retained<NSString>;
58
59        #[unsafe(method(ownerName))]
60        #[unsafe(method_family = none)]
61        pub unsafe fn ownerName(&self) -> Retained<NSString>;
62    );
63}