icrate/generated/LocalAuthentication/
LAPersistedRight.rs1use crate::common::*;
4use crate::Foundation::*;
5use crate::LocalAuthentication::*;
6
7extern_class!(
8 #[derive(Debug, PartialEq, Eq, Hash)]
9 #[cfg(feature = "LocalAuthentication_LAPersistedRight")]
10 pub struct LAPersistedRight;
11
12 #[cfg(feature = "LocalAuthentication_LAPersistedRight")]
13 unsafe impl ClassType for LAPersistedRight {
14 #[inherits(NSObject)]
15 type Super = LARight;
16 type Mutability = InteriorMutable;
17 }
18);
19
20#[cfg(feature = "LocalAuthentication_LAPersistedRight")]
21unsafe impl NSObjectProtocol for LAPersistedRight {}
22
23extern_methods!(
24 #[cfg(feature = "LocalAuthentication_LAPersistedRight")]
25 unsafe impl LAPersistedRight {
26 #[cfg(feature = "LocalAuthentication_LAPrivateKey")]
27 #[method_id(@__retain_semantics Other key)]
28 pub unsafe fn key(&self) -> Id<LAPrivateKey>;
29
30 #[cfg(feature = "LocalAuthentication_LASecret")]
31 #[method_id(@__retain_semantics Other secret)]
32 pub unsafe fn secret(&self) -> Id<LASecret>;
33
34 #[method_id(@__retain_semantics New new)]
35 pub unsafe fn new() -> Id<Self>;
36
37 #[method_id(@__retain_semantics Init init)]
38 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
39 }
40);
41
42extern_methods!(
43 #[cfg(feature = "LocalAuthentication_LAPersistedRight")]
45 unsafe impl LAPersistedRight {
46 #[cfg(feature = "LocalAuthentication_LAAuthenticationRequirement")]
47 #[method_id(@__retain_semantics Init initWithRequirement:)]
48 pub unsafe fn initWithRequirement(
49 this: Allocated<Self>,
50 requirement: &LAAuthenticationRequirement,
51 ) -> Id<Self>;
52 }
53);