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:))]
53 #[unsafe(method_family = init)]
54 pub unsafe fn initWithEntityVersionHashes_inBundle_versionChecksum(
55 this: Allocated<Self>,
56 version_hash: &NSDictionary,
57 bundle: Option<&NSBundle>,
58 version_checksum: &NSString,
59 ) -> Retained<Self>;
60
61 #[unsafe(method(initWithName:inBundle:versionChecksum:))]
62 #[unsafe(method_family = init)]
63 pub unsafe fn initWithName_inBundle_versionChecksum(
64 this: Allocated<Self>,
65 model_name: &NSString,
66 bundle: Option<&NSBundle>,
67 version_checksum: &NSString,
68 ) -> Retained<Self>;
69 );
70}
71
72impl NSManagedObjectModelReference {
74 extern_methods!(
75 #[unsafe(method(new))]
76 #[unsafe(method_family = new)]
77 pub unsafe fn new() -> Retained<Self>;
78 );
79}