objc2_mail_kit/generated/
MEMessageDecoder.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_protocol!(
10    /// Methods in this protocol can be used by a mail app extension to decode messages.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/mailkit/memessagedecoder?language=objc)
13    pub unsafe trait MEMessageDecoder: NSObjectProtocol {
14        #[cfg(feature = "MEDecodedMessage")]
15        /// This is invoked while a message is being decoded. The returned value should be an
16        /// `MEDecodedMessage`if the extension is needed for decoding the message. The returned
17        /// `MEDecodedMessage`should be created with unencrypted MIME data. The
18        /// `MEMessageSecurityInformation`property on the
19        /// `MEDecodedMessage`should contain any signing or encryption information about the decoded message. If the extension is not needed for decoding the message it should return quickly with
20        /// `nil.`
21        /// Parameter `data`: - The original data for the message.
22        #[unsafe(method(decodedMessageForMessageData:))]
23        #[unsafe(method_family = none)]
24        unsafe fn decodedMessageForMessageData(
25            &self,
26            data: &NSData,
27        ) -> Option<Retained<MEDecodedMessage>>;
28    }
29);