1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
/// [Apple's documentation](https://developer.apple.com/documentation/opendirectory/odrecordmap?language=objc)
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct ODRecordMap;
);
extern_conformance!(
unsafe impl NSObjectProtocol for ODRecordMap {}
);
impl ODRecordMap {
extern_methods!(
#[unsafe(method(native))]
#[unsafe(method_family = none)]
pub unsafe fn native(&self) -> Retained<NSString>;
/// Setter for [`native`][Self::native].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
#[unsafe(method(setNative:))]
#[unsafe(method_family = none)]
pub unsafe fn setNative(&self, native: Option<&NSString>);
#[unsafe(method(odPredicate))]
#[unsafe(method_family = none)]
pub unsafe fn odPredicate(&self) -> Retained<NSDictionary>;
/// Setter for [`odPredicate`][Self::odPredicate].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
///
/// # Safety
///
/// `od_predicate` generic should be of the correct type.
#[unsafe(method(setOdPredicate:))]
#[unsafe(method_family = none)]
pub unsafe fn setOdPredicate(&self, od_predicate: Option<&NSDictionary>);
#[unsafe(method(attributes))]
#[unsafe(method_family = none)]
pub unsafe fn attributes(&self) -> Retained<NSDictionary>;
#[unsafe(method(standardAttributeTypes))]
#[unsafe(method_family = none)]
pub unsafe fn standardAttributeTypes(&self) -> Retained<NSArray>;
/// Returns an initialized and autoreleased ODRecordMap object.
///
///
/// Returns an initialized and autoreleased ODRecordMap object.
#[unsafe(method(recordMap))]
#[unsafe(method_family = none)]
pub unsafe fn recordMap() -> Option<Retained<Self>>;
#[cfg(feature = "ODAttributeMap")]
/// Returns an ODAttributeMap object for the given OD standard attribute.
///
///
/// Returns an ODAttributeMap object for the given OD standard attribute.
///
/// # Safety
///
/// `standard_attribute` might not allow `None`.
#[unsafe(method(attributeMapForStandardAttribute:))]
#[unsafe(method_family = none)]
pub unsafe fn attributeMapForStandardAttribute(
&self,
standard_attribute: Option<&NSString>,
) -> Option<Retained<ODAttributeMap>>;
#[cfg(feature = "ODAttributeMap")]
/// Sets an ODAttributeMap object for a given OD standard attribute.
///
///
/// Sets an ODAttributeMap object for a given OD standard attribute.
///
/// # Safety
///
/// - `attribute_map` might not allow `None`.
/// - `standard_attribute` might not allow `None`.
#[unsafe(method(setAttributeMap:forStandardAttribute:))]
#[unsafe(method_family = none)]
pub unsafe fn setAttributeMap_forStandardAttribute(
&self,
attribute_map: Option<&ODAttributeMap>,
standard_attribute: Option<&NSString>,
);
);
}
/// Methods declared on superclass `NSObject`.
impl ODRecordMap {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}