objc2_core_data/generated/
NSManagedObjectModelReference.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 NSManagedObjectModelReference;
14);
15
16extern_conformance!(
17 unsafe impl NSObjectProtocol for NSManagedObjectModelReference {}
18);
19
20impl NSManagedObjectModelReference {
21 extern_methods!(
22 #[cfg(feature = "NSManagedObjectModel")]
23 #[unsafe(method(resolvedModel))]
24 #[unsafe(method_family = none)]
25 pub unsafe fn resolvedModel(&self) -> Retained<NSManagedObjectModel>;
26
27 #[unsafe(method(versionChecksum))]
28 #[unsafe(method_family = none)]
29 pub unsafe fn versionChecksum(&self) -> Retained<NSString>;
30
31 #[unsafe(method(init))]
32 #[unsafe(method_family = init)]
33 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
34
35 #[cfg(feature = "NSManagedObjectModel")]
36 #[unsafe(method(initWithModel:versionChecksum:))]
37 #[unsafe(method_family = init)]
38 pub unsafe fn initWithModel_versionChecksum(
39 this: Allocated<Self>,
40 model: &NSManagedObjectModel,
41 version_checksum: &NSString,
42 ) -> Retained<Self>;
43
44 #[unsafe(method(initWithFileURL:versionChecksum:))]
45 #[unsafe(method_family = init)]
46 pub unsafe fn initWithFileURL_versionChecksum(
47 this: Allocated<Self>,
48 file_url: &NSURL,
49 version_checksum: &NSString,
50 ) -> Retained<Self>;
51
52 #[unsafe(method(initWithEntityVersionHashes:inBundle:versionChecksum:))]
56 #[unsafe(method_family = init)]
57 pub unsafe fn initWithEntityVersionHashes_inBundle_versionChecksum(
58 this: Allocated<Self>,
59 version_hash: &NSDictionary,
60 bundle: Option<&NSBundle>,
61 version_checksum: &NSString,
62 ) -> Retained<Self>;
63
64 #[unsafe(method(initWithName:inBundle:versionChecksum:))]
65 #[unsafe(method_family = init)]
66 pub unsafe fn initWithName_inBundle_versionChecksum(
67 this: Allocated<Self>,
68 model_name: &NSString,
69 bundle: Option<&NSBundle>,
70 version_checksum: &NSString,
71 ) -> Retained<Self>;
72 );
73}
74
75impl NSManagedObjectModelReference {
77 extern_methods!(
78 #[unsafe(method(new))]
79 #[unsafe(method_family = new)]
80 pub unsafe fn new() -> Retained<Self>;
81 );
82}