objc2_health_kit/generated/
HKDocumentSample.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// An abstract class representing a health document.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkdocumentsample?language=objc)
13    #[unsafe(super(HKSample, HKObject, NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    #[cfg(all(feature = "HKObject", feature = "HKSample"))]
16    pub struct HKDocumentSample;
17);
18
19#[cfg(all(feature = "HKObject", feature = "HKSample"))]
20unsafe impl Send for HKDocumentSample {}
21
22#[cfg(all(feature = "HKObject", feature = "HKSample"))]
23unsafe impl Sync for HKDocumentSample {}
24
25#[cfg(all(feature = "HKObject", feature = "HKSample"))]
26extern_conformance!(
27    unsafe impl NSCoding for HKDocumentSample {}
28);
29
30#[cfg(all(feature = "HKObject", feature = "HKSample"))]
31extern_conformance!(
32    unsafe impl NSObjectProtocol for HKDocumentSample {}
33);
34
35#[cfg(all(feature = "HKObject", feature = "HKSample"))]
36extern_conformance!(
37    unsafe impl NSSecureCoding for HKDocumentSample {}
38);
39
40#[cfg(all(feature = "HKObject", feature = "HKSample"))]
41impl HKDocumentSample {
42    extern_methods!(
43        #[cfg(feature = "HKObjectType")]
44        #[unsafe(method(documentType))]
45        #[unsafe(method_family = none)]
46        pub unsafe fn documentType(&self) -> Retained<HKDocumentType>;
47    );
48}
49
50/// Methods declared on superclass `HKObject`.
51#[cfg(all(feature = "HKObject", feature = "HKSample"))]
52impl HKDocumentSample {
53    extern_methods!(
54        #[unsafe(method(init))]
55        #[unsafe(method_family = init)]
56        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
57    );
58}
59
60/// Methods declared on superclass `NSObject`.
61#[cfg(all(feature = "HKObject", feature = "HKSample"))]
62impl HKDocumentSample {
63    extern_methods!(
64        #[unsafe(method(new))]
65        #[unsafe(method_family = new)]
66        pub unsafe fn new() -> Retained<Self>;
67    );
68}