objc2_contacts/generated/
CNFetchResult.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    /// [Apple's documentation](https://developer.apple.com/documentation/contacts/cnfetchresult?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct CNFetchResult<ValueType: ?Sized = AnyObject>;
14);
15
16unsafe impl<ValueType: ?Sized> NSObjectProtocol for CNFetchResult<ValueType> {}
17
18impl<ValueType: Message> CNFetchResult<ValueType> {
19    extern_methods!(
20        #[unsafe(method(init))]
21        #[unsafe(method_family = init)]
22        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
23
24        #[unsafe(method(new))]
25        #[unsafe(method_family = new)]
26        pub unsafe fn new() -> Retained<Self>;
27
28        #[unsafe(method(value))]
29        #[unsafe(method_family = none)]
30        pub unsafe fn value(&self) -> Retained<ValueType>;
31
32        #[unsafe(method(currentHistoryToken))]
33        #[unsafe(method_family = none)]
34        pub unsafe fn currentHistoryToken(&self) -> Retained<NSData>;
35    );
36}