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::AppKit::*;
use crate::AuthenticationServices::*;
use crate::Foundation::*;

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

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

#[cfg(feature = "AuthenticationServices_ASPasskeyCredentialIdentity")]
unsafe impl ASCredentialIdentity for ASPasskeyCredentialIdentity {}

#[cfg(feature = "AuthenticationServices_ASPasskeyCredentialIdentity")]
unsafe impl NSCoding for ASPasskeyCredentialIdentity {}

#[cfg(feature = "AuthenticationServices_ASPasskeyCredentialIdentity")]
unsafe impl NSCopying for ASPasskeyCredentialIdentity {}

#[cfg(feature = "AuthenticationServices_ASPasskeyCredentialIdentity")]
unsafe impl NSObjectProtocol for ASPasskeyCredentialIdentity {}

#[cfg(feature = "AuthenticationServices_ASPasskeyCredentialIdentity")]
unsafe impl NSSecureCoding for ASPasskeyCredentialIdentity {}

extern_methods!(
    #[cfg(feature = "AuthenticationServices_ASPasskeyCredentialIdentity")]
    unsafe impl ASPasskeyCredentialIdentity {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[cfg(all(feature = "Foundation_NSData", feature = "Foundation_NSString"))]
        #[method_id(@__retain_semantics Init initWithRelyingPartyIdentifier:userName:credentialID:userHandle:recordIdentifier:)]
        pub unsafe fn initWithRelyingPartyIdentifier_userName_credentialID_userHandle_recordIdentifier(
            this: Allocated<Self>,
            relying_party_identifier: &NSString,
            user_name: &NSString,
            credential_id: &NSData,
            user_handle: &NSData,
            record_identifier: Option<&NSString>,
        ) -> Id<Self>;

        #[cfg(all(feature = "Foundation_NSData", feature = "Foundation_NSString"))]
        #[method_id(@__retain_semantics Other identityWithRelyingPartyIdentifier:userName:credentialID:userHandle:recordIdentifier:)]
        pub unsafe fn identityWithRelyingPartyIdentifier_userName_credentialID_userHandle_recordIdentifier(
            relying_party_identifier: &NSString,
            user_name: &NSString,
            credential_id: &NSData,
            user_handle: &NSData,
            record_identifier: Option<&NSString>,
        ) -> Id<Self>;

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

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

        #[cfg(feature = "Foundation_NSData")]
        #[method_id(@__retain_semantics Other credentialID)]
        pub unsafe fn credentialID(&self) -> Id<NSData>;

        #[cfg(feature = "Foundation_NSData")]
        #[method_id(@__retain_semantics Other userHandle)]
        pub unsafe fn userHandle(&self) -> Id<NSData>;

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

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

        #[method(setRank:)]
        pub unsafe fn setRank(&self, rank: NSInteger);
    }
);

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