icrate/generated/CoreData/
NSEntityMigrationPolicy.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use crate::common::*;
4use crate::CoreData::*;
5use crate::Foundation::*;
6
7extern_static!(NSMigrationManagerKey: &'static NSString);
8
9extern_static!(NSMigrationSourceObjectKey: &'static NSString);
10
11extern_static!(NSMigrationDestinationObjectKey: &'static NSString);
12
13extern_static!(NSMigrationEntityMappingKey: &'static NSString);
14
15extern_static!(NSMigrationPropertyMappingKey: &'static NSString);
16
17extern_static!(NSMigrationEntityPolicyKey: &'static NSString);
18
19extern_class!(
20    #[derive(Debug, PartialEq, Eq, Hash)]
21    #[cfg(feature = "CoreData_NSEntityMigrationPolicy")]
22    pub struct NSEntityMigrationPolicy;
23
24    #[cfg(feature = "CoreData_NSEntityMigrationPolicy")]
25    unsafe impl ClassType for NSEntityMigrationPolicy {
26        type Super = NSObject;
27        type Mutability = InteriorMutable;
28    }
29);
30
31#[cfg(feature = "CoreData_NSEntityMigrationPolicy")]
32unsafe impl NSObjectProtocol for NSEntityMigrationPolicy {}
33
34extern_methods!(
35    #[cfg(feature = "CoreData_NSEntityMigrationPolicy")]
36    unsafe impl NSEntityMigrationPolicy {
37        #[cfg(all(
38            feature = "CoreData_NSEntityMapping",
39            feature = "CoreData_NSMigrationManager",
40            feature = "Foundation_NSError"
41        ))]
42        #[method(beginEntityMapping:manager:error:_)]
43        pub unsafe fn beginEntityMapping_manager_error(
44            &self,
45            mapping: &NSEntityMapping,
46            manager: &NSMigrationManager,
47        ) -> Result<(), Id<NSError>>;
48
49        #[cfg(all(
50            feature = "CoreData_NSEntityMapping",
51            feature = "CoreData_NSManagedObject",
52            feature = "CoreData_NSMigrationManager",
53            feature = "Foundation_NSError"
54        ))]
55        #[method(createDestinationInstancesForSourceInstance:entityMapping:manager:error:_)]
56        pub unsafe fn createDestinationInstancesForSourceInstance_entityMapping_manager_error(
57            &self,
58            s_instance: &NSManagedObject,
59            mapping: &NSEntityMapping,
60            manager: &NSMigrationManager,
61        ) -> Result<(), Id<NSError>>;
62
63        #[cfg(all(
64            feature = "CoreData_NSEntityMapping",
65            feature = "CoreData_NSMigrationManager",
66            feature = "Foundation_NSError"
67        ))]
68        #[method(endInstanceCreationForEntityMapping:manager:error:_)]
69        pub unsafe fn endInstanceCreationForEntityMapping_manager_error(
70            &self,
71            mapping: &NSEntityMapping,
72            manager: &NSMigrationManager,
73        ) -> Result<(), Id<NSError>>;
74
75        #[cfg(all(
76            feature = "CoreData_NSEntityMapping",
77            feature = "CoreData_NSManagedObject",
78            feature = "CoreData_NSMigrationManager",
79            feature = "Foundation_NSError"
80        ))]
81        #[method(createRelationshipsForDestinationInstance:entityMapping:manager:error:_)]
82        pub unsafe fn createRelationshipsForDestinationInstance_entityMapping_manager_error(
83            &self,
84            d_instance: &NSManagedObject,
85            mapping: &NSEntityMapping,
86            manager: &NSMigrationManager,
87        ) -> Result<(), Id<NSError>>;
88
89        #[cfg(all(
90            feature = "CoreData_NSEntityMapping",
91            feature = "CoreData_NSMigrationManager",
92            feature = "Foundation_NSError"
93        ))]
94        #[method(endRelationshipCreationForEntityMapping:manager:error:_)]
95        pub unsafe fn endRelationshipCreationForEntityMapping_manager_error(
96            &self,
97            mapping: &NSEntityMapping,
98            manager: &NSMigrationManager,
99        ) -> Result<(), Id<NSError>>;
100
101        #[cfg(all(
102            feature = "CoreData_NSEntityMapping",
103            feature = "CoreData_NSMigrationManager",
104            feature = "Foundation_NSError"
105        ))]
106        #[method(performCustomValidationForEntityMapping:manager:error:_)]
107        pub unsafe fn performCustomValidationForEntityMapping_manager_error(
108            &self,
109            mapping: &NSEntityMapping,
110            manager: &NSMigrationManager,
111        ) -> Result<(), Id<NSError>>;
112
113        #[cfg(all(
114            feature = "CoreData_NSEntityMapping",
115            feature = "CoreData_NSMigrationManager",
116            feature = "Foundation_NSError"
117        ))]
118        #[method(endEntityMapping:manager:error:_)]
119        pub unsafe fn endEntityMapping_manager_error(
120            &self,
121            mapping: &NSEntityMapping,
122            manager: &NSMigrationManager,
123        ) -> Result<(), Id<NSError>>;
124    }
125);
126
127extern_methods!(
128    /// Methods declared on superclass `NSObject`
129    #[cfg(feature = "CoreData_NSEntityMigrationPolicy")]
130    unsafe impl NSEntityMigrationPolicy {
131        #[method_id(@__retain_semantics Init init)]
132        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
133
134        #[method_id(@__retain_semantics New new)]
135        pub unsafe fn new() -> Id<Self>;
136    }
137);