objc2_health_kit/generated/
HKSeriesSample.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    /// This class represents a type of HKSample that references a series of data.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkseriessample?language=objc)
13    #[unsafe(super(HKSample, HKObject, NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    #[cfg(all(feature = "HKObject", feature = "HKSample"))]
16    pub struct HKSeriesSample;
17);
18
19#[cfg(all(feature = "HKObject", feature = "HKSample"))]
20unsafe impl Send for HKSeriesSample {}
21
22#[cfg(all(feature = "HKObject", feature = "HKSample"))]
23unsafe impl Sync for HKSeriesSample {}
24
25#[cfg(all(feature = "HKObject", feature = "HKSample"))]
26extern_conformance!(
27    unsafe impl NSCoding for HKSeriesSample {}
28);
29
30#[cfg(all(feature = "HKObject", feature = "HKSample"))]
31extern_conformance!(
32    unsafe impl NSObjectProtocol for HKSeriesSample {}
33);
34
35#[cfg(all(feature = "HKObject", feature = "HKSample"))]
36extern_conformance!(
37    unsafe impl NSSecureCoding for HKSeriesSample {}
38);
39
40#[cfg(all(feature = "HKObject", feature = "HKSample"))]
41impl HKSeriesSample {
42    extern_methods!(
43        /// The number of individual series datum represented by the receiver and accessible
44        /// through the appropriate HKQuery series subclass.
45        #[unsafe(method(count))]
46        #[unsafe(method_family = none)]
47        pub unsafe fn count(&self) -> NSUInteger;
48    );
49}
50
51/// Methods declared on superclass `HKObject`.
52#[cfg(all(feature = "HKObject", feature = "HKSample"))]
53impl HKSeriesSample {
54    extern_methods!(
55        #[unsafe(method(init))]
56        #[unsafe(method_family = init)]
57        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
58    );
59}
60
61/// Methods declared on superclass `NSObject`.
62#[cfg(all(feature = "HKObject", feature = "HKSample"))]
63impl HKSeriesSample {
64    extern_methods!(
65        #[unsafe(method(new))]
66        #[unsafe(method_family = new)]
67        pub unsafe fn new() -> Retained<Self>;
68    );
69}