objc2_identity_lookup/generated/
ILClassificationActions.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/// Describes various classification actions.
8///
9/// See also [Apple's documentation](https://developer.apple.com/documentation/identitylookup/ilclassificationaction?language=objc)
10// NS_ENUM
11#[repr(transparent)]
12#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
13pub struct ILClassificationAction(pub NSInteger);
14impl ILClassificationAction {
15    /// Indicate that no action is requested.
16    #[doc(alias = "ILClassificationActionNone")]
17    pub const None: Self = Self(0);
18    /// Report communication(s) as not junk.
19    #[doc(alias = "ILClassificationActionReportNotJunk")]
20    pub const ReportNotJunk: Self = Self(1);
21    /// Report communication(s) as junk.
22    #[doc(alias = "ILClassificationActionReportJunk")]
23    pub const ReportJunk: Self = Self(2);
24    /// Report communication(s) as junk and block the sender.
25    #[doc(alias = "ILClassificationActionReportJunkAndBlockSender")]
26    pub const ReportJunkAndBlockSender: Self = Self(3);
27}
28
29unsafe impl Encode for ILClassificationAction {
30    const ENCODING: Encoding = NSInteger::ENCODING;
31}
32
33unsafe impl RefEncode for ILClassificationAction {
34    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
35}