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        #[unsafe(method(propertyCache))]
37        #[unsafe(method_family = none)]
38        pub unsafe fn propertyCache(
39            &self,
40        ) -> Option<Retained<NSMutableDictionary<NSString, AnyObject>>>;
41
42        /// Setter for [`propertyCache`][Self::propertyCache].
43        #[unsafe(method(setPropertyCache:))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn setPropertyCache(
46            &self,
47            property_cache: Option<&NSMutableDictionary<NSString, AnyObject>>,
48        );
49
50        #[unsafe(method(valueForKey:))]
51        #[unsafe(method_family = none)]
52        pub unsafe fn valueForKey(&self, key: &NSString) -> Option<Retained<AnyObject>>;
53
54        #[unsafe(method(setValue:forKey:))]
55        #[unsafe(method_family = none)]
56        pub unsafe fn setValue_forKey(&self, value: Option<&AnyObject>, key: &NSString);
57    );
58}
59
60/// Methods declared on superclass `NSObject`.
61impl NSAtomicStoreCacheNode {
62    extern_methods!(
63        #[unsafe(method(init))]
64        #[unsafe(method_family = init)]
65        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
66
67        #[unsafe(method(new))]
68        #[unsafe(method_family = new)]
69        pub unsafe fn new() -> Retained<Self>;
70    );
71}