icrate/generated/CoreData/
NSPersistentHistoryChange.rs1use crate::common::*;
4use crate::CoreData::*;
5use crate::Foundation::*;
6
7ns_enum!(
8 #[underlying(NSInteger)]
9 pub enum NSPersistentHistoryChangeType {
10 NSPersistentHistoryChangeTypeInsert = 0,
11 NSPersistentHistoryChangeTypeUpdate = 1,
12 NSPersistentHistoryChangeTypeDelete = 2,
13 }
14);
15
16extern_class!(
17 #[derive(Debug, PartialEq, Eq, Hash)]
18 #[cfg(feature = "CoreData_NSPersistentHistoryChange")]
19 pub struct NSPersistentHistoryChange;
20
21 #[cfg(feature = "CoreData_NSPersistentHistoryChange")]
22 unsafe impl ClassType for NSPersistentHistoryChange {
23 type Super = NSObject;
24 type Mutability = InteriorMutable;
25 }
26);
27
28#[cfg(feature = "CoreData_NSPersistentHistoryChange")]
29unsafe impl NSCopying for NSPersistentHistoryChange {}
30
31#[cfg(feature = "CoreData_NSPersistentHistoryChange")]
32unsafe impl NSObjectProtocol for NSPersistentHistoryChange {}
33
34extern_methods!(
35 #[cfg(feature = "CoreData_NSPersistentHistoryChange")]
36 unsafe impl NSPersistentHistoryChange {
37 #[cfg(all(
38 feature = "CoreData_NSEntityDescription",
39 feature = "CoreData_NSManagedObjectContext"
40 ))]
41 #[method_id(@__retain_semantics Other entityDescriptionWithContext:)]
42 pub unsafe fn entityDescriptionWithContext(
43 context: &NSManagedObjectContext,
44 ) -> Option<Id<NSEntityDescription>>;
45
46 #[cfg(feature = "CoreData_NSEntityDescription")]
47 #[method_id(@__retain_semantics Other entityDescription)]
48 pub unsafe fn entityDescription() -> Option<Id<NSEntityDescription>>;
49
50 #[cfg(feature = "CoreData_NSFetchRequest")]
51 #[method_id(@__retain_semantics Other fetchRequest)]
52 pub unsafe fn fetchRequest() -> Option<Id<NSFetchRequest>>;
53
54 #[method(changeID)]
55 pub unsafe fn changeID(&self) -> i64;
56
57 #[cfg(feature = "CoreData_NSManagedObjectID")]
58 #[method_id(@__retain_semantics Other changedObjectID)]
59 pub unsafe fn changedObjectID(&self) -> Id<NSManagedObjectID>;
60
61 #[method(changeType)]
62 pub unsafe fn changeType(&self) -> NSPersistentHistoryChangeType;
63
64 #[cfg(feature = "Foundation_NSDictionary")]
65 #[method_id(@__retain_semantics Other tombstone)]
66 pub unsafe fn tombstone(&self) -> Option<Id<NSDictionary>>;
67
68 #[cfg(feature = "CoreData_NSPersistentHistoryTransaction")]
69 #[method_id(@__retain_semantics Other transaction)]
70 pub unsafe fn transaction(&self) -> Option<Id<NSPersistentHistoryTransaction>>;
71
72 #[cfg(all(
73 feature = "CoreData_NSPropertyDescription",
74 feature = "Foundation_NSSet"
75 ))]
76 #[method_id(@__retain_semantics Other updatedProperties)]
77 pub unsafe fn updatedProperties(&self) -> Option<Id<NSSet<NSPropertyDescription>>>;
78 }
79);
80
81extern_methods!(
82 #[cfg(feature = "CoreData_NSPersistentHistoryChange")]
84 unsafe impl NSPersistentHistoryChange {
85 #[method_id(@__retain_semantics Init init)]
86 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
87
88 #[method_id(@__retain_semantics New new)]
89 pub unsafe fn new() -> Id<Self>;
90 }
91);