objc2_core_ml/generated/
MLModelCollectionEntry.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// MLModelCollectionEntry
11    /// Information about a model in a model collection.
12    ///
13    /// See also [Apple's documentation](https://developer.apple.com/documentation/coreml/mlmodelcollectionentry?language=objc)
14    #[unsafe(super(NSObject))]
15    #[derive(Debug, PartialEq, Eq, Hash)]
16    #[deprecated = "Use Background Assets or NSURLSession instead."]
17    pub struct MLModelCollectionEntry;
18);
19
20extern_conformance!(
21    unsafe impl NSObjectProtocol for MLModelCollectionEntry {}
22);
23
24impl MLModelCollectionEntry {
25    extern_methods!(
26        #[deprecated = "Use Background Assets or NSURLSession instead."]
27        #[unsafe(method(modelIdentifier))]
28        #[unsafe(method_family = none)]
29        pub unsafe fn modelIdentifier(&self) -> Retained<NSString>;
30
31        #[deprecated = "Use Background Assets or NSURLSession instead."]
32        #[unsafe(method(modelURL))]
33        #[unsafe(method_family = none)]
34        pub unsafe fn modelURL(&self) -> Retained<NSURL>;
35
36        #[deprecated = "Use Background Assets or NSURLSession instead."]
37        #[unsafe(method(isEqualToModelCollectionEntry:))]
38        #[unsafe(method_family = none)]
39        pub unsafe fn isEqualToModelCollectionEntry(&self, entry: &MLModelCollectionEntry) -> bool;
40
41        #[deprecated = "Use Background Assets or NSURLSession instead."]
42        #[unsafe(method(init))]
43        #[unsafe(method_family = init)]
44        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
45
46        #[deprecated = "Use Background Assets or NSURLSession instead."]
47        #[unsafe(method(new))]
48        #[unsafe(method_family = new)]
49        pub unsafe fn new() -> Retained<Self>;
50    );
51}