objc2_mail_kit/generated/
MEAddressAnnotation.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 instance of this class can be used to change the visual style of recipeint email address token when user in composing a mail message.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/mailkit/meaddressannotation?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct MEAddressAnnotation;
16);
17
18extern_conformance!(
19    unsafe impl NSCoding for MEAddressAnnotation {}
20);
21
22extern_conformance!(
23    unsafe impl NSObjectProtocol for MEAddressAnnotation {}
24);
25
26extern_conformance!(
27    unsafe impl NSSecureCoding for MEAddressAnnotation {}
28);
29
30impl MEAddressAnnotation {
31    extern_methods!(
32        #[unsafe(method(init))]
33        #[unsafe(method_family = init)]
34        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
35
36        #[unsafe(method(new))]
37        #[unsafe(method_family = new)]
38        pub unsafe fn new() -> Retained<Self>;
39
40        /// An annotation to denote a recipeint email address has an error when composing a mail message.
41        ///
42        /// Parameter `localizedDescription`: - A localized string with a brief description of the error that may be presented to the user.
43        #[unsafe(method(errorWithLocalizedDescription:))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn errorWithLocalizedDescription(
46            localized_description: &NSString,
47        ) -> Retained<MEAddressAnnotation>;
48
49        /// An annotation to warn about a recipeint email address when composing a mail message.
50        ///
51        /// Parameter `localizedDescription`: - A localized string with a brief description of the warning may be presented to the user. .
52        #[unsafe(method(warningWithLocalizedDescription:))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn warningWithLocalizedDescription(
55            localized_description: &NSString,
56        ) -> Retained<MEAddressAnnotation>;
57
58        /// An annotation to  denote a valid recipeint email address when composing a mail message.
59        ///
60        /// Parameter `localizedDescription`: - A localized string with a brief description that may be presented to the user. .
61        #[unsafe(method(successWithLocalizedDescription:))]
62        #[unsafe(method_family = none)]
63        pub unsafe fn successWithLocalizedDescription(
64            localized_description: &NSString,
65        ) -> Retained<MEAddressAnnotation>;
66    );
67}