icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::HealthKit::*;
use crate::UniformTypeIdentifiers::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "HealthKit_HKFHIRVersion")]
    pub struct HKFHIRVersion;

    #[cfg(feature = "HealthKit_HKFHIRVersion")]
    unsafe impl ClassType for HKFHIRVersion {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "HealthKit_HKFHIRVersion")]
unsafe impl NSCoding for HKFHIRVersion {}

#[cfg(feature = "HealthKit_HKFHIRVersion")]
unsafe impl NSCopying for HKFHIRVersion {}

#[cfg(feature = "HealthKit_HKFHIRVersion")]
unsafe impl NSObjectProtocol for HKFHIRVersion {}

#[cfg(feature = "HealthKit_HKFHIRVersion")]
unsafe impl NSSecureCoding for HKFHIRVersion {}

extern_methods!(
    #[cfg(feature = "HealthKit_HKFHIRVersion")]
    unsafe impl HKFHIRVersion {
        #[method(majorVersion)]
        pub unsafe fn majorVersion(&self) -> NSInteger;

        #[method(minorVersion)]
        pub unsafe fn minorVersion(&self) -> NSInteger;

        #[method(patchVersion)]
        pub unsafe fn patchVersion(&self) -> NSInteger;

        #[method_id(@__retain_semantics Other FHIRRelease)]
        pub unsafe fn FHIRRelease(&self) -> Id<HKFHIRRelease>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other stringRepresentation)]
        pub unsafe fn stringRepresentation(&self) -> Id<NSString>;

        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[cfg(all(feature = "Foundation_NSError", feature = "Foundation_NSString"))]
        #[method_id(@__retain_semantics Other versionFromVersionString:error:_)]
        pub unsafe fn versionFromVersionString_error(
            version_string: &NSString,
        ) -> Result<Id<Self>, Id<NSError>>;

        #[method_id(@__retain_semantics Other primaryDSTU2Version)]
        pub unsafe fn primaryDSTU2Version() -> Id<Self>;

        #[method_id(@__retain_semantics Other primaryR4Version)]
        pub unsafe fn primaryR4Version() -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "HealthKit_HKFHIRVersion")]
    unsafe impl HKFHIRVersion {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);