objc2_intents/generated/
INPaymentAmount.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct INPaymentAmount;
14);
15
16extern_conformance!(
17 unsafe impl NSCoding for INPaymentAmount {}
18);
19
20extern_conformance!(
21 unsafe impl NSCopying for INPaymentAmount {}
22);
23
24unsafe impl CopyingHelper for INPaymentAmount {
25 type Result = Self;
26}
27
28extern_conformance!(
29 unsafe impl NSObjectProtocol for INPaymentAmount {}
30);
31
32extern_conformance!(
33 unsafe impl NSSecureCoding for INPaymentAmount {}
34);
35
36impl INPaymentAmount {
37 extern_methods!(
38 #[unsafe(method(init))]
39 #[unsafe(method_family = init)]
40 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
41
42 #[cfg(all(feature = "INAmountType", feature = "INCurrencyAmount"))]
43 #[unsafe(method(initWithAmountType:amount:))]
44 #[unsafe(method_family = init)]
45 pub unsafe fn initWithAmountType_amount(
46 this: Allocated<Self>,
47 amount_type: INAmountType,
48 amount: &INCurrencyAmount,
49 ) -> Retained<Self>;
50
51 #[cfg(feature = "INCurrencyAmount")]
52 #[unsafe(method(amount))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn amount(&self) -> Option<Retained<INCurrencyAmount>>;
55
56 #[cfg(feature = "INAmountType")]
57 #[unsafe(method(amountType))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn amountType(&self) -> INAmountType;
60 );
61}
62
63impl INPaymentAmount {
65 extern_methods!(
66 #[unsafe(method(new))]
67 #[unsafe(method_family = new)]
68 pub unsafe fn new() -> Retained<Self>;
69 );
70}