objc2_core_data/generated/
NSManagedObjectID.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct NSManagedObjectID;
14);
15
16unsafe impl Send for NSManagedObjectID {}
17
18unsafe impl Sync for NSManagedObjectID {}
19
20extern_conformance!(
21 unsafe impl NSCopying for NSManagedObjectID {}
22);
23
24unsafe impl CopyingHelper for NSManagedObjectID {
25 type Result = Self;
26}
27
28extern_conformance!(
29 unsafe impl NSObjectProtocol for NSManagedObjectID {}
30);
31
32impl NSManagedObjectID {
33 extern_methods!(
34 #[cfg(feature = "NSEntityDescription")]
35 #[unsafe(method(entity))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn entity(&self) -> Retained<NSEntityDescription>;
38
39 #[cfg(feature = "NSPersistentStore")]
40 #[unsafe(method(persistentStore))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn persistentStore(&self) -> Option<Retained<NSPersistentStore>>;
43
44 #[unsafe(method(isTemporaryID))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn isTemporaryID(&self) -> bool;
47
48 #[unsafe(method(URIRepresentation))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn URIRepresentation(&self) -> Retained<NSURL>;
51 );
52}
53
54impl NSManagedObjectID {
56 extern_methods!(
57 #[unsafe(method(init))]
58 #[unsafe(method_family = init)]
59 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
60
61 #[unsafe(method(new))]
62 #[unsafe(method_family = new)]
63 pub unsafe fn new() -> Retained<Self>;
64 );
65}