objc2_metric_kit/generated/
MXCrashDiagnosticObjectiveCExceptionReason.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
17 #[derive(Debug, PartialEq, Eq, Hash)]
18 pub struct MXCrashDiagnosticObjectiveCExceptionReason;
19);
20
21extern_conformance!(
22 unsafe impl NSCoding for MXCrashDiagnosticObjectiveCExceptionReason {}
23);
24
25extern_conformance!(
26 unsafe impl NSObjectProtocol for MXCrashDiagnosticObjectiveCExceptionReason {}
27);
28
29extern_conformance!(
30 unsafe impl NSSecureCoding for MXCrashDiagnosticObjectiveCExceptionReason {}
31);
32
33impl MXCrashDiagnosticObjectiveCExceptionReason {
34 extern_methods!(
35 #[unsafe(method(composedMessage))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn composedMessage(&self) -> Retained<NSString>;
39
40 #[unsafe(method(formatString))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn formatString(&self) -> Retained<NSString>;
44
45 #[unsafe(method(arguments))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn arguments(&self) -> Retained<NSArray<NSString>>;
49
50 #[unsafe(method(exceptionType))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn exceptionType(&self) -> Retained<NSString>;
54
55 #[unsafe(method(className))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn className(&self) -> Retained<NSString>;
59
60 #[unsafe(method(exceptionName))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn exceptionName(&self) -> Retained<NSString>;
66
67 #[unsafe(method(JSONRepresentation))]
71 #[unsafe(method_family = none)]
72 pub unsafe fn JSONRepresentation(&self) -> Retained<NSData>;
73
74 #[unsafe(method(dictionaryRepresentation))]
78 #[unsafe(method_family = none)]
79 pub unsafe fn dictionaryRepresentation(&self) -> Retained<NSDictionary>;
80 );
81}
82
83impl MXCrashDiagnosticObjectiveCExceptionReason {
85 extern_methods!(
86 #[unsafe(method(init))]
87 #[unsafe(method_family = init)]
88 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
89
90 #[unsafe(method(new))]
91 #[unsafe(method_family = new)]
92 pub unsafe fn new() -> Retained<Self>;
93 );
94}