objc2_pass_kit/generated/
PKIdentityIntentToStore.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    /// Indicates your intention to store an identity element. This covers not only
11    /// the element value, but also information derived from the element value such
12    /// as signatures or digests.
13    ///
14    /// See also [Apple's documentation](https://developer.apple.com/documentation/passkit/pkidentityintenttostore?language=objc)
15    #[unsafe(super(NSObject))]
16    #[derive(Debug, PartialEq, Eq, Hash)]
17    pub struct PKIdentityIntentToStore;
18);
19
20extern_conformance!(
21    unsafe impl NSCopying for PKIdentityIntentToStore {}
22);
23
24unsafe impl CopyingHelper for PKIdentityIntentToStore {
25    type Result = Self;
26}
27
28extern_conformance!(
29    unsafe impl NSObjectProtocol for PKIdentityIntentToStore {}
30);
31
32impl PKIdentityIntentToStore {
33    extern_methods!(
34        /// Indicates the data element returned in the response will not be stored for
35        /// a period longer than necessary to process the result in realtime.
36        #[unsafe(method(willNotStoreIntent))]
37        #[unsafe(method_family = none)]
38        pub unsafe fn willNotStoreIntent() -> Retained<PKIdentityIntentToStore>;
39
40        /// Indicates the data element may be stored for an indefinite length of time.
41        #[unsafe(method(mayStoreIntent))]
42        #[unsafe(method_family = none)]
43        pub unsafe fn mayStoreIntent() -> Retained<PKIdentityIntentToStore>;
44
45        /// Indicates the data element may be stored for no longer than than the provided number of days.
46        #[unsafe(method(mayStoreIntentForDays:))]
47        #[unsafe(method_family = none)]
48        pub unsafe fn mayStoreIntentForDays(days: NSInteger) -> Retained<Self>;
49
50        #[unsafe(method(init))]
51        #[unsafe(method_family = init)]
52        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
53
54        #[unsafe(method(new))]
55        #[unsafe(method_family = new)]
56        pub unsafe fn new() -> Retained<Self>;
57    );
58}