objc2-pass-kit 0.3.2

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

use crate::*;

/// [Apple's documentation](https://developer.apple.com/documentation/passkit/pkpasstype?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PKPassType(pub NSUInteger);
impl PKPassType {
    #[doc(alias = "PKPassTypeBarcode")]
    pub const Barcode: Self = Self(0);
    #[doc(alias = "PKPassTypeSecureElement")]
    pub const SecureElement: Self = Self(1);
    #[doc(alias = "PKPassTypePayment")]
    #[deprecated = "Use PKPassTypeSecureElement instead"]
    pub const Payment: Self = Self(PKPassType::SecureElement.0);
}

unsafe impl Encode for PKPassType {
    const ENCODING: Encoding = NSUInteger::ENCODING;
}

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