objc2_authentication_services/generated/
ASPasskeyRegistrationCredentialExtensionInput.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    /// This class encapsulates input for various WebAuthn extensions during passkey registration.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/authenticationservices/aspasskeyregistrationcredentialextensioninput?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct ASPasskeyRegistrationCredentialExtensionInput;
16);
17
18extern_conformance!(
19    unsafe impl NSCoding for ASPasskeyRegistrationCredentialExtensionInput {}
20);
21
22extern_conformance!(
23    unsafe impl NSCopying for ASPasskeyRegistrationCredentialExtensionInput {}
24);
25
26unsafe impl CopyingHelper for ASPasskeyRegistrationCredentialExtensionInput {
27    type Result = Self;
28}
29
30extern_conformance!(
31    unsafe impl NSObjectProtocol for ASPasskeyRegistrationCredentialExtensionInput {}
32);
33
34extern_conformance!(
35    unsafe impl NSSecureCoding for ASPasskeyRegistrationCredentialExtensionInput {}
36);
37
38impl ASPasskeyRegistrationCredentialExtensionInput {
39    extern_methods!(
40        #[unsafe(method(init))]
41        #[unsafe(method_family = init)]
42        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
43
44        #[unsafe(method(new))]
45        #[unsafe(method_family = new)]
46        pub unsafe fn new() -> Retained<Self>;
47
48        #[cfg(feature = "ASAuthorizationPublicKeyCredentialLargeBlobRegistrationInput")]
49        /// Input for the `largeBlob` extension in passkey registration requests.
50        #[unsafe(method(largeBlob))]
51        #[unsafe(method_family = none)]
52        pub unsafe fn largeBlob(
53            &self,
54        ) -> Option<Retained<ASAuthorizationPublicKeyCredentialLargeBlobRegistrationInput>>;
55    );
56}