objc2_mail_kit/generated/
MEMessageSecurityInformation.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct MEMessageSecurityInformation;
16);
17
18extern_conformance!(
19 unsafe impl NSCoding for MEMessageSecurityInformation {}
20);
21
22extern_conformance!(
23 unsafe impl NSObjectProtocol for MEMessageSecurityInformation {}
24);
25
26extern_conformance!(
27 unsafe impl NSSecureCoding for MEMessageSecurityInformation {}
28);
29
30impl MEMessageSecurityInformation {
31 extern_methods!(
32 #[cfg(feature = "MEMessageSigner")]
33 #[unsafe(method(signers))]
35 #[unsafe(method_family = none)]
36 pub unsafe fn signers(&self) -> Retained<NSArray<MEMessageSigner>>;
37
38 #[unsafe(method(isEncrypted))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn isEncrypted(&self) -> bool;
42
43 #[unsafe(method(signingError))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn signingError(&self) -> Option<Retained<NSError>>;
47
48 #[unsafe(method(encryptionError))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn encryptionError(&self) -> Option<Retained<NSError>>;
52
53 #[unsafe(method(shouldBlockRemoteContent))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn shouldBlockRemoteContent(&self) -> bool;
57
58 #[unsafe(method(localizedRemoteContentBlockingReason))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn localizedRemoteContentBlockingReason(&self) -> Option<Retained<NSString>>;
62
63 #[unsafe(method(new))]
64 #[unsafe(method_family = new)]
65 pub unsafe fn new() -> Retained<Self>;
66
67 #[unsafe(method(init))]
68 #[unsafe(method_family = init)]
69 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
70
71 #[cfg(feature = "MEMessageSigner")]
72 #[unsafe(method(initWithSigners:isEncrypted:signingError:encryptionError:))]
73 #[unsafe(method_family = init)]
74 pub unsafe fn initWithSigners_isEncrypted_signingError_encryptionError(
75 this: Allocated<Self>,
76 signers: &NSArray<MEMessageSigner>,
77 is_encrypted: bool,
78 signing_error: Option<&NSError>,
79 encryption_error: Option<&NSError>,
80 ) -> Retained<Self>;
81
82 #[cfg(feature = "MEMessageSigner")]
83 #[unsafe(method(initWithSigners:isEncrypted:signingError:encryptionError:shouldBlockRemoteContent:localizedRemoteContentBlockingReason:))]
84 #[unsafe(method_family = init)]
85 pub unsafe fn initWithSigners_isEncrypted_signingError_encryptionError_shouldBlockRemoteContent_localizedRemoteContentBlockingReason(
86 this: Allocated<Self>,
87 signers: &NSArray<MEMessageSigner>,
88 is_encrypted: bool,
89 signing_error: Option<&NSError>,
90 encryption_error: Option<&NSError>,
91 should_block_remote_content: bool,
92 localized_remote_content_blocking_reason: Option<&NSString>,
93 ) -> Retained<Self>;
94 );
95}