objc2_identity_lookup/generated/
ILMessageFilterQueryResponse.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// A response to an ILMessageFilterQueryRequest.
12    ///
13    /// See also [Apple's documentation](https://developer.apple.com/documentation/identitylookup/ilmessagefilterqueryresponse?language=objc)
14    #[unsafe(super(NSObject))]
15    #[derive(Debug, PartialEq, Eq, Hash)]
16    pub struct ILMessageFilterQueryResponse;
17);
18
19extern_conformance!(
20    unsafe impl NSCoding for ILMessageFilterQueryResponse {}
21);
22
23extern_conformance!(
24    unsafe impl NSObjectProtocol for ILMessageFilterQueryResponse {}
25);
26
27extern_conformance!(
28    unsafe impl NSSecureCoding for ILMessageFilterQueryResponse {}
29);
30
31impl ILMessageFilterQueryResponse {
32    extern_methods!(
33        #[cfg(feature = "ILMessageFilterAction")]
34        /// Action to take for the received message.
35        #[unsafe(method(action))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn action(&self) -> ILMessageFilterAction;
38
39        #[cfg(feature = "ILMessageFilterAction")]
40        /// Setter for [`action`][Self::action].
41        #[unsafe(method(setAction:))]
42        #[unsafe(method_family = none)]
43        pub unsafe fn setAction(&self, action: ILMessageFilterAction);
44
45        #[cfg(feature = "ILMessageFilterAction")]
46        /// SubAction to take for the received message.
47        #[unsafe(method(subAction))]
48        #[unsafe(method_family = none)]
49        pub unsafe fn subAction(&self) -> ILMessageFilterSubAction;
50
51        #[cfg(feature = "ILMessageFilterAction")]
52        /// Setter for [`subAction`][Self::subAction].
53        #[unsafe(method(setSubAction:))]
54        #[unsafe(method_family = none)]
55        pub unsafe fn setSubAction(&self, sub_action: ILMessageFilterSubAction);
56    );
57}
58
59/// Methods declared on superclass `NSObject`.
60impl ILMessageFilterQueryResponse {
61    extern_methods!(
62        #[unsafe(method(init))]
63        #[unsafe(method_family = init)]
64        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
65
66        #[unsafe(method(new))]
67        #[unsafe(method_family = new)]
68        pub unsafe fn new() -> Retained<Self>;
69    );
70}