objc2_fs_kit/generated/
FSModuleIdentity.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    /// An installed file system module.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/fskit/fsmoduleidentity?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct FSModuleIdentity;
16);
17
18extern_conformance!(
19    unsafe impl NSObjectProtocol for FSModuleIdentity {}
20);
21
22impl FSModuleIdentity {
23    extern_methods!(
24        /// The module's bundle identifier.
25        #[unsafe(method(bundleIdentifier))]
26        #[unsafe(method_family = none)]
27        pub unsafe fn bundleIdentifier(&self) -> Retained<NSString>;
28
29        /// The module's URL.
30        #[unsafe(method(url))]
31        #[unsafe(method_family = none)]
32        pub unsafe fn url(&self) -> Retained<NSURL>;
33
34        /// A Boolean value that indicates if the module is enabled.
35        #[unsafe(method(isEnabled))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn isEnabled(&self) -> bool;
38    );
39}
40
41/// Methods declared on superclass `NSObject`.
42impl FSModuleIdentity {
43    extern_methods!(
44        #[unsafe(method(init))]
45        #[unsafe(method_family = init)]
46        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
47
48        #[unsafe(method(new))]
49        #[unsafe(method_family = new)]
50        pub unsafe fn new() -> Retained<Self>;
51    );
52}