objc2_core_data/generated/
NSAtomicStoreCacheNode.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/coredata/nsatomicstorecachenode?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct NSAtomicStoreCacheNode;
15);
16
17extern_conformance!(
18    unsafe impl NSObjectProtocol for NSAtomicStoreCacheNode {}
19);
20
21impl NSAtomicStoreCacheNode {
22    extern_methods!(
23        #[cfg(feature = "NSManagedObjectID")]
24        #[unsafe(method(initWithObjectID:))]
25        #[unsafe(method_family = init)]
26        pub unsafe fn initWithObjectID(
27            this: Allocated<Self>,
28            moid: &NSManagedObjectID,
29        ) -> Retained<Self>;
30
31        #[cfg(feature = "NSManagedObjectID")]
32        #[unsafe(method(objectID))]
33        #[unsafe(method_family = none)]
34        pub unsafe fn objectID(&self) -> Retained<NSManagedObjectID>;
35
36        /// # Safety
37        ///
38        /// The returned generic should be of the correct type.
39        #[unsafe(method(propertyCache))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn propertyCache(
42            &self,
43        ) -> Option<Retained<NSMutableDictionary<NSString, AnyObject>>>;
44
45        /// Setter for [`propertyCache`][Self::propertyCache].
46        ///
47        /// # Safety
48        ///
49        /// `property_cache` generic should be of the correct type.
50        #[unsafe(method(setPropertyCache:))]
51        #[unsafe(method_family = none)]
52        pub unsafe fn setPropertyCache(
53            &self,
54            property_cache: Option<&NSMutableDictionary<NSString, AnyObject>>,
55        );
56
57        #[unsafe(method(valueForKey:))]
58        #[unsafe(method_family = none)]
59        pub unsafe fn valueForKey(&self, key: &NSString) -> Option<Retained<AnyObject>>;
60
61        /// # Safety
62        ///
63        /// `value` should be of the correct type.
64        #[unsafe(method(setValue:forKey:))]
65        #[unsafe(method_family = none)]
66        pub unsafe fn setValue_forKey(&self, value: Option<&AnyObject>, key: &NSString);
67    );
68}
69
70/// Methods declared on superclass `NSObject`.
71impl NSAtomicStoreCacheNode {
72    extern_methods!(
73        #[unsafe(method(init))]
74        #[unsafe(method_family = init)]
75        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
76
77        #[unsafe(method(new))]
78        #[unsafe(method_family = new)]
79        pub unsafe fn new() -> Retained<Self>;
80    );
81}