objc2-pass-kit 0.3.2

Bindings to the PassKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// Indicates your intention to store an identity element. This covers not only
    /// the element value, but also information derived from the element value such
    /// as signatures or digests.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/passkit/pkidentityintenttostore?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct PKIdentityIntentToStore;
);

extern_conformance!(
    unsafe impl NSCopying for PKIdentityIntentToStore {}
);

unsafe impl CopyingHelper for PKIdentityIntentToStore {
    type Result = Self;
}

extern_conformance!(
    unsafe impl NSObjectProtocol for PKIdentityIntentToStore {}
);

impl PKIdentityIntentToStore {
    extern_methods!(
        /// Indicates the data element returned in the response will not be stored for
        /// a period longer than necessary to process the result in realtime.
        #[unsafe(method(willNotStoreIntent))]
        #[unsafe(method_family = none)]
        pub unsafe fn willNotStoreIntent() -> Retained<PKIdentityIntentToStore>;

        /// Indicates the data element may be stored for an indefinite length of time.
        #[unsafe(method(mayStoreIntent))]
        #[unsafe(method_family = none)]
        pub unsafe fn mayStoreIntent() -> Retained<PKIdentityIntentToStore>;

        /// Indicates the data element may be stored for no longer than than the provided number of days.
        #[unsafe(method(mayStoreIntentForDays:))]
        #[unsafe(method_family = none)]
        pub unsafe fn mayStoreIntentForDays(days: NSInteger) -> Retained<Self>;

        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}