objc2_health_kit/generated/
HKWorkoutRoute.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    /// [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkworkoutroute?language=objc)
11    #[unsafe(super(HKSeriesSample, HKSample, HKObject, NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    #[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
14    pub struct HKWorkoutRoute;
15);
16
17#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
18unsafe impl Send for HKWorkoutRoute {}
19
20#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
21unsafe impl Sync for HKWorkoutRoute {}
22
23#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
24extern_conformance!(
25    unsafe impl NSCoding for HKWorkoutRoute {}
26);
27
28#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
29extern_conformance!(
30    unsafe impl NSObjectProtocol for HKWorkoutRoute {}
31);
32
33#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
34extern_conformance!(
35    unsafe impl NSSecureCoding for HKWorkoutRoute {}
36);
37
38#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
39impl HKWorkoutRoute {
40    extern_methods!();
41}
42
43/// Methods declared on superclass `HKObject`.
44#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
45impl HKWorkoutRoute {
46    extern_methods!(
47        #[unsafe(method(init))]
48        #[unsafe(method_family = init)]
49        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
50    );
51}
52
53/// Methods declared on superclass `NSObject`.
54#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
55impl HKWorkoutRoute {
56    extern_methods!(
57        #[unsafe(method(new))]
58        #[unsafe(method_family = new)]
59        pub unsafe fn new() -> Retained<Self>;
60    );
61}