objc2_event_kit/generated/
EKParticipant.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(EKObject, NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 #[cfg(feature = "EKObject")]
16 pub struct EKParticipant;
17);
18
19#[cfg(feature = "EKObject")]
20unsafe impl NSCopying for EKParticipant {}
21
22#[cfg(feature = "EKObject")]
23unsafe impl CopyingHelper for EKParticipant {
24 type Result = Self;
25}
26
27#[cfg(feature = "EKObject")]
28unsafe impl NSObjectProtocol for EKParticipant {}
29
30#[cfg(feature = "EKObject")]
31impl EKParticipant {
32 extern_methods!(
33 #[unsafe(method(URL))]
35 #[unsafe(method_family = none)]
36 pub unsafe fn URL(&self) -> Retained<NSURL>;
37
38 #[unsafe(method(name))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn name(&self) -> Option<Retained<NSString>>;
42
43 #[cfg(feature = "EKTypes")]
44 #[unsafe(method(participantStatus))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn participantStatus(&self) -> EKParticipantStatus;
50
51 #[cfg(feature = "EKTypes")]
52 #[unsafe(method(participantRole))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn participantRole(&self) -> EKParticipantRole;
58
59 #[cfg(feature = "EKTypes")]
60 #[unsafe(method(participantType))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn participantType(&self) -> EKParticipantType;
66
67 #[unsafe(method(isCurrentUser))]
70 #[unsafe(method_family = none)]
71 pub unsafe fn isCurrentUser(&self) -> bool;
72
73 #[unsafe(method(contactPredicate))]
79 #[unsafe(method_family = none)]
80 pub unsafe fn contactPredicate(&self) -> Retained<NSPredicate>;
81 );
82}
83
84#[cfg(feature = "EKObject")]
86impl EKParticipant {
87 extern_methods!(
88 #[unsafe(method(init))]
89 #[unsafe(method_family = init)]
90 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
91
92 #[unsafe(method(new))]
93 #[unsafe(method_family = new)]
94 pub unsafe fn new() -> Retained<Self>;
95 );
96}