objc2_mail_kit/generated/
MEEncodedOutgoingMessage.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/mailkit/meencodedoutgoingmessage?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct MEEncodedOutgoingMessage;
14);
15
16extern_conformance!(
17    unsafe impl NSCoding for MEEncodedOutgoingMessage {}
18);
19
20extern_conformance!(
21    unsafe impl NSObjectProtocol for MEEncodedOutgoingMessage {}
22);
23
24extern_conformance!(
25    unsafe impl NSSecureCoding for MEEncodedOutgoingMessage {}
26);
27
28impl MEEncodedOutgoingMessage {
29    extern_methods!(
30        #[unsafe(method(initWithRawData:isSigned:isEncrypted:))]
31        #[unsafe(method_family = init)]
32        pub unsafe fn initWithRawData_isSigned_isEncrypted(
33            this: Allocated<Self>,
34            raw_data: &NSData,
35            is_signed: bool,
36            is_encrypted: bool,
37        ) -> Retained<Self>;
38
39        /// The full encoded RFC822 message including headers and body.
40        #[unsafe(method(rawData))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn rawData(&self) -> Retained<NSData>;
43
44        /// Whether or not the encoded message is signed
45        #[unsafe(method(isSigned))]
46        #[unsafe(method_family = none)]
47        pub unsafe fn isSigned(&self) -> bool;
48
49        /// Whether or not the encoded message is encrypted
50        #[unsafe(method(isEncrypted))]
51        #[unsafe(method_family = none)]
52        pub unsafe fn isEncrypted(&self) -> bool;
53    );
54}
55
56/// Methods declared on superclass `NSObject`.
57impl MEEncodedOutgoingMessage {
58    extern_methods!(
59        #[unsafe(method(init))]
60        #[unsafe(method_family = init)]
61        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
62
63        #[unsafe(method(new))]
64        #[unsafe(method_family = new)]
65        pub unsafe fn new() -> Retained<Self>;
66    );
67}