objc2_pass_kit/generated/
PKLabeledValue.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 PKLabeledValue;
14);
15
16extern_conformance!(
17 unsafe impl NSObjectProtocol for PKLabeledValue {}
18);
19
20impl PKLabeledValue {
21 extern_methods!(
22 #[unsafe(method(initWithLabel:value:))]
23 #[unsafe(method_family = init)]
24 pub unsafe fn initWithLabel_value(
25 this: Allocated<Self>,
26 label: &NSString,
27 value: &NSString,
28 ) -> Retained<Self>;
29
30 #[unsafe(method(label))]
31 #[unsafe(method_family = none)]
32 pub unsafe fn label(&self) -> Retained<NSString>;
33
34 #[unsafe(method(value))]
35 #[unsafe(method_family = none)]
36 pub unsafe fn value(&self) -> Retained<NSString>;
37 );
38}
39
40impl PKLabeledValue {
42 extern_methods!(
43 #[unsafe(method(init))]
44 #[unsafe(method_family = init)]
45 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
46
47 #[unsafe(method(new))]
48 #[unsafe(method_family = new)]
49 pub unsafe fn new() -> Retained<Self>;
50 );
51}