objc2_shared_with_you_core/generated/
SWPerson.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 SWPerson;
14);
15
16extern_conformance!(
17 unsafe impl NSCoding for SWPerson {}
18);
19
20extern_conformance!(
21 unsafe impl NSObjectProtocol for SWPerson {}
22);
23
24extern_conformance!(
25 unsafe impl NSSecureCoding for SWPerson {}
26);
27
28impl SWPerson {
29 extern_methods!(
30 #[cfg(feature = "SWPersonIdentity")]
31 #[unsafe(method(initWithHandle:identity:displayName:thumbnailImageData:))]
41 #[unsafe(method_family = init)]
42 pub unsafe fn initWithHandle_identity_displayName_thumbnailImageData(
43 this: Allocated<Self>,
44 handle: Option<&NSString>,
45 identity: Option<&SWPersonIdentity>,
46 display_name: &NSString,
47 thumbnail_image_data: Option<&NSData>,
48 ) -> Retained<Self>;
49
50 #[unsafe(method(init))]
51 #[unsafe(method_family = init)]
52 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
53
54 #[unsafe(method(new))]
55 #[unsafe(method_family = new)]
56 pub unsafe fn new() -> Retained<Self>;
57 );
58}