use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct ASOneTimeCodeCredentialIdentity;
);
#[cfg(feature = "ASCredentialIdentity")]
extern_conformance!(
unsafe impl ASCredentialIdentity for ASOneTimeCodeCredentialIdentity {}
);
extern_conformance!(
unsafe impl NSCoding for ASOneTimeCodeCredentialIdentity {}
);
extern_conformance!(
unsafe impl NSCopying for ASOneTimeCodeCredentialIdentity {}
);
unsafe impl CopyingHelper for ASOneTimeCodeCredentialIdentity {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for ASOneTimeCodeCredentialIdentity {}
);
extern_conformance!(
unsafe impl NSSecureCoding for ASOneTimeCodeCredentialIdentity {}
);
impl ASOneTimeCodeCredentialIdentity {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "ASCredentialServiceIdentifier")]
#[unsafe(method(initWithServiceIdentifier:label:recordIdentifier:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithServiceIdentifier_label_recordIdentifier(
this: Allocated<Self>,
service_identifier: &ASCredentialServiceIdentifier,
label: &NSString,
record_identifier: Option<&NSString>,
) -> Retained<Self>;
#[unsafe(method(label))]
#[unsafe(method_family = none)]
pub unsafe fn label(&self) -> Retained<NSString>;
);
}
impl ASOneTimeCodeCredentialIdentity {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}