icrate/generated/StoreKit/
SKPaymentDiscount.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use crate::common::*;
4use crate::AppKit::*;
5use crate::Foundation::*;
6use crate::StoreKit::*;
7
8extern_class!(
9    #[derive(Debug, PartialEq, Eq, Hash)]
10    #[cfg(feature = "StoreKit_SKPaymentDiscount")]
11    pub struct SKPaymentDiscount;
12
13    #[cfg(feature = "StoreKit_SKPaymentDiscount")]
14    unsafe impl ClassType for SKPaymentDiscount {
15        type Super = NSObject;
16        type Mutability = InteriorMutable;
17    }
18);
19
20#[cfg(feature = "StoreKit_SKPaymentDiscount")]
21unsafe impl Send for SKPaymentDiscount {}
22
23#[cfg(feature = "StoreKit_SKPaymentDiscount")]
24unsafe impl Sync for SKPaymentDiscount {}
25
26#[cfg(feature = "StoreKit_SKPaymentDiscount")]
27unsafe impl NSObjectProtocol for SKPaymentDiscount {}
28
29extern_methods!(
30    #[cfg(feature = "StoreKit_SKPaymentDiscount")]
31    unsafe impl SKPaymentDiscount {
32        #[cfg(all(
33            feature = "Foundation_NSNumber",
34            feature = "Foundation_NSString",
35            feature = "Foundation_NSUUID"
36        ))]
37        #[method_id(@__retain_semantics Init initWithIdentifier:keyIdentifier:nonce:signature:timestamp:)]
38        pub unsafe fn initWithIdentifier_keyIdentifier_nonce_signature_timestamp(
39            this: Allocated<Self>,
40            identifier: &NSString,
41            key_identifier: &NSString,
42            nonce: &NSUUID,
43            signature: &NSString,
44            timestamp: &NSNumber,
45        ) -> Id<Self>;
46
47        #[cfg(feature = "Foundation_NSString")]
48        #[method_id(@__retain_semantics Other identifier)]
49        pub unsafe fn identifier(&self) -> Id<NSString>;
50
51        #[cfg(feature = "Foundation_NSString")]
52        #[method_id(@__retain_semantics Other keyIdentifier)]
53        pub unsafe fn keyIdentifier(&self) -> Id<NSString>;
54
55        #[cfg(feature = "Foundation_NSUUID")]
56        #[method_id(@__retain_semantics Other nonce)]
57        pub unsafe fn nonce(&self) -> Id<NSUUID>;
58
59        #[cfg(feature = "Foundation_NSString")]
60        #[method_id(@__retain_semantics Other signature)]
61        pub unsafe fn signature(&self) -> Id<NSString>;
62
63        #[cfg(feature = "Foundation_NSNumber")]
64        #[method_id(@__retain_semantics Other timestamp)]
65        pub unsafe fn timestamp(&self) -> Id<NSNumber>;
66    }
67);
68
69extern_methods!(
70    /// Methods declared on superclass `NSObject`
71    #[cfg(feature = "StoreKit_SKPaymentDiscount")]
72    unsafe impl SKPaymentDiscount {
73        #[method_id(@__retain_semantics Init init)]
74        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
75
76        #[method_id(@__retain_semantics New new)]
77        pub unsafe fn new() -> Id<Self>;
78    }
79);