objc2_class_kit/generated/
CLSDefines.rs1use objc2::__framework_prelude::*;
4use objc2_foundation::*;
5
6use crate::*;
7
8extern "C" {
9 pub static CLSErrorCodeDomain: Option<&'static NSString>;
11}
12
13#[repr(transparent)]
16#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
17pub struct CLSErrorCode(pub NSInteger);
18impl CLSErrorCode {
19 #[doc(alias = "CLSErrorCodeNone")]
20 pub const None: Self = Self(0);
21 #[doc(alias = "CLSErrorCodeClassKitUnavailable")]
22 pub const ClassKitUnavailable: Self = Self(1);
23 #[doc(alias = "CLSErrorCodeInvalidArgument")]
24 pub const InvalidArgument: Self = Self(2);
25 #[doc(alias = "CLSErrorCodeInvalidModification")]
26 pub const InvalidModification: Self = Self(3);
27 #[doc(alias = "CLSErrorCodeAuthorizationDenied")]
28 pub const AuthorizationDenied: Self = Self(4);
29 #[doc(alias = "CLSErrorCodeDatabaseInaccessible")]
30 pub const DatabaseInaccessible: Self = Self(5);
31 #[doc(alias = "CLSErrorCodeLimits")]
32 pub const Limits: Self = Self(6);
33 #[doc(alias = "CLSErrorCodeInvalidCreate")]
34 pub const InvalidCreate: Self = Self(7);
35 #[doc(alias = "CLSErrorCodeInvalidUpdate")]
36 pub const InvalidUpdate: Self = Self(8);
37 #[doc(alias = "CLSErrorCodePartialFailure")]
38 pub const PartialFailure: Self = Self(9);
39 #[doc(alias = "CLSErrorCodeInvalidAccountCredentials")]
40 pub const InvalidAccountCredentials: Self = Self(10);
41}
42
43unsafe impl Encode for CLSErrorCode {
44 const ENCODING: Encoding = NSInteger::ENCODING;
45}
46
47unsafe impl RefEncode for CLSErrorCode {
48 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
49}
50
51pub type CLSErrorUserInfoKey = NSString;
54
55extern "C" {
56 pub static CLSErrorObjectKey: Option<&'static CLSErrorUserInfoKey>;
60}
61
62extern "C" {
63 pub static CLSErrorUnderlyingErrorsKey: Option<&'static CLSErrorUserInfoKey>;
67}
68
69extern "C" {
70 pub static CLSErrorSuccessfulObjectsKey: Option<&'static CLSErrorUserInfoKey>;
74}
75
76pub type CLSPredicateKeyPath = NSString;
79
80extern "C" {
81 pub static CLSPredicateKeyPathDateCreated: Option<&'static CLSPredicateKeyPath>;
83}
84
85extern "C" {
86 pub static CLSPredicateKeyPathIdentifier: Option<&'static CLSPredicateKeyPath>;
88}
89
90extern "C" {
91 pub static CLSPredicateKeyPathTitle: Option<&'static CLSPredicateKeyPath>;
93}
94
95extern "C" {
96 pub static CLSPredicateKeyPathUniversalLinkURL: Option<&'static CLSPredicateKeyPath>;
98}
99
100extern "C" {
101 pub static CLSPredicateKeyPathTopic: Option<&'static CLSPredicateKeyPath>;
103}
104
105extern "C" {
106 pub static CLSPredicateKeyPathParent: Option<&'static CLSPredicateKeyPath>;
108}