objc2-messages 0.3.2

Bindings to the Messages framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/messages/msstickerserrordomain?language=objc)
    pub static MSStickersErrorDomain: Option<&'static NSString>;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/messages/msmessageserrordomain?language=objc)
    pub static MSMessagesErrorDomain: Option<&'static NSString>;
}

/// [Apple's documentation](https://developer.apple.com/documentation/messages/msmessageerrorcode?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct MSMessageErrorCode(pub NSInteger);
impl MSMessageErrorCode {
    #[doc(alias = "MSMessageErrorCodeUnknown")]
    pub const Unknown: Self = Self(-1);
    #[doc(alias = "MSMessageErrorCodeFileNotFound")]
    pub const FileNotFound: Self = Self(1);
    #[doc(alias = "MSMessageErrorCodeFileUnreadable")]
    pub const FileUnreadable: Self = Self(2);
    #[doc(alias = "MSMessageErrorCodeImproperFileType")]
    pub const ImproperFileType: Self = Self(3);
    #[doc(alias = "MSMessageErrorCodeImproperFileURL")]
    pub const ImproperFileURL: Self = Self(4);
    #[doc(alias = "MSMessageErrorCodeStickerFileImproperFileAttributes")]
    pub const StickerFileImproperFileAttributes: Self = Self(5);
    #[doc(alias = "MSMessageErrorCodeStickerFileImproperFileSize")]
    pub const StickerFileImproperFileSize: Self = Self(6);
    #[doc(alias = "MSMessageErrorCodeStickerFileImproperFileFormat")]
    pub const StickerFileImproperFileFormat: Self = Self(7);
    #[doc(alias = "MSMessageErrorCodeURLExceedsMaxSize")]
    pub const URLExceedsMaxSize: Self = Self(8);
    #[doc(alias = "MSMessageErrorCodeSendWithoutRecentInteraction")]
    pub const SendWithoutRecentInteraction: Self = Self(9);
    #[doc(alias = "MSMessageErrorCodeSendWhileNotVisible")]
    pub const SendWhileNotVisible: Self = Self(10);
    #[doc(alias = "MSMessageErrorCodeAPIUnavailableInPresentationContext")]
    pub const APIUnavailableInPresentationContext: Self = Self(11);
}

unsafe impl Encode for MSMessageErrorCode {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for MSMessageErrorCode {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}