objc2_core_spotlight/generated/
CSImportExtension.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    /// [Apple's documentation](https://developer.apple.com/documentation/corespotlight/csimportextension?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct CSImportExtension;
14);
15
16extern_conformance!(
17    unsafe impl NSExtensionRequestHandling for CSImportExtension {}
18);
19
20extern_conformance!(
21    unsafe impl NSObjectProtocol for CSImportExtension {}
22);
23
24impl CSImportExtension {
25    extern_methods!(
26        #[cfg(feature = "CSSearchableItemAttributeSet")]
27        #[unsafe(method(updateAttributes:forFileAtURL:error:_))]
28        #[unsafe(method_family = none)]
29        pub unsafe fn updateAttributes_forFileAtURL_error(
30            &self,
31            attributes: &CSSearchableItemAttributeSet,
32            content_url: &NSURL,
33        ) -> Result<(), Retained<NSError>>;
34    );
35}
36
37/// Methods declared on superclass `NSObject`.
38impl CSImportExtension {
39    extern_methods!(
40        #[unsafe(method(init))]
41        #[unsafe(method_family = init)]
42        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
43
44        #[unsafe(method(new))]
45        #[unsafe(method_family = new)]
46        pub unsafe fn new() -> Retained<Self>;
47    );
48}