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 MEEmailAddress;
);
extern_conformance!(
unsafe impl NSCoding for MEEmailAddress {}
);
extern_conformance!(
unsafe impl NSCopying for MEEmailAddress {}
);
unsafe impl CopyingHelper for MEEmailAddress {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for MEEmailAddress {}
);
extern_conformance!(
unsafe impl NSSecureCoding for MEEmailAddress {}
);
impl MEEmailAddress {
extern_methods!(
#[unsafe(method(rawString))]
#[unsafe(method_family = none)]
pub unsafe fn rawString(&self) -> Retained<NSString>;
#[unsafe(method(addressString))]
#[unsafe(method_family = none)]
pub unsafe fn addressString(&self) -> Option<Retained<NSString>>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(initWithRawString:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithRawString(
this: Allocated<Self>,
raw_string: &NSString,
) -> Retained<Self>;
);
}