objc2_core_data/generated/
NSIncrementalStoreNode.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/nsincrementalstorenode?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct NSIncrementalStoreNode;
15);
16
17extern_conformance!(
18    unsafe impl NSObjectProtocol for NSIncrementalStoreNode {}
19);
20
21impl NSIncrementalStoreNode {
22    extern_methods!(
23        #[cfg(feature = "NSManagedObjectID")]
24        /// # Safety
25        ///
26        /// `values` generic should be of the correct type.
27        #[unsafe(method(initWithObjectID:withValues:version:))]
28        #[unsafe(method_family = init)]
29        pub unsafe fn initWithObjectID_withValues_version(
30            this: Allocated<Self>,
31            object_id: &NSManagedObjectID,
32            values: &NSDictionary<NSString, AnyObject>,
33            version: u64,
34        ) -> Retained<Self>;
35
36        /// # Safety
37        ///
38        /// `values` generic should be of the correct type.
39        #[unsafe(method(updateWithValues:version:))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn updateWithValues_version(
42            &self,
43            values: &NSDictionary<NSString, AnyObject>,
44            version: u64,
45        );
46
47        #[cfg(feature = "NSManagedObjectID")]
48        #[unsafe(method(objectID))]
49        #[unsafe(method_family = none)]
50        pub unsafe fn objectID(&self) -> Retained<NSManagedObjectID>;
51
52        #[unsafe(method(version))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn version(&self) -> u64;
55
56        #[cfg(feature = "NSPropertyDescription")]
57        #[unsafe(method(valueForPropertyDescription:))]
58        #[unsafe(method_family = none)]
59        pub unsafe fn valueForPropertyDescription(
60            &self,
61            prop: &NSPropertyDescription,
62        ) -> Option<Retained<AnyObject>>;
63    );
64}
65
66/// Methods declared on superclass `NSObject`.
67impl NSIncrementalStoreNode {
68    extern_methods!(
69        #[unsafe(method(init))]
70        #[unsafe(method_family = init)]
71        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
72
73        #[unsafe(method(new))]
74        #[unsafe(method_family = new)]
75        pub unsafe fn new() -> Retained<Self>;
76    );
77}