objc2_message_ui/generated/
MFMailComposeControllerDeferredAction.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4
5use crate::*;
6
7/// [Apple's documentation](https://developer.apple.com/documentation/messageui/mfmailcomposecontrollerdeferredaction?language=objc)
8// NS_ENUM
9#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct MFMailComposeControllerDeferredAction(pub NSInteger);
12impl MFMailComposeControllerDeferredAction {
13    #[doc(alias = "MFMailComposeControllerDeferredActionNone")]
14    pub const None: Self = Self(0);
15    #[doc(alias = "MFMailComposeControllerDeferredActionAdjustInsertionPoint")]
16    pub const AdjustInsertionPoint: Self = Self(1);
17    #[doc(alias = "MFMailComposeControllerDeferredActionAddMissingRecipients")]
18    pub const AddMissingRecipients: Self = Self(2);
19}
20
21unsafe impl Encode for MFMailComposeControllerDeferredAction {
22    const ENCODING: Encoding = NSInteger::ENCODING;
23}
24
25unsafe impl RefEncode for MFMailComposeControllerDeferredAction {
26    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
27}