#[repr(C)]pub struct es_event_od_attribute_value_add_t {
pub instigator: ShouldNotBeNull<es_process_t>,
pub error_code: i32,
pub record_type: es_od_record_type_t,
pub record_name: es_string_token_t,
pub attribute_name: es_string_token_t,
pub attribute_value: es_string_token_t,
pub node_name: es_string_token_t,
pub db_path: es_string_token_t,
}macos_14_0_0 only.Expand description
Notification that an attribute value was added to a record.
This event type does not support caching (notify-only).
Attributes conceptually have the type Map String (Set String).
Each OD record has a Map of attribute name to Set of attribute value.
When an attribute value is added, it is inserted into the set of values for that name.
Fields§
§instigator: ShouldNotBeNull<es_process_t>Process that instigated operation (XPC caller).
error_code: i32Result code for the operation.
Values indicating specific failure reasons are defined in odconstants.h.
record_type: es_od_record_type_tThe type of the record to which the attribute value was added.
record_name: es_string_token_tThe name of the record to which the attribute value was added.
attribute_name: es_string_token_tThe name of the attribute to which the value was added.
attribute_value: es_string_token_tThe value that was added.
node_name: es_string_token_tOD node being mutated.
Typically one of “/Local/Default”, “/LDAPv3/
db_path: es_string_token_tOptional. If node_name is “/Local/Default”, this is, the path of the database against which OD is authenticating.
Implementations§
Source§impl es_event_od_attribute_value_add_t
Accessors for ShouldNotBeNull fields
impl es_event_od_attribute_value_add_t
Accessors for ShouldNotBeNull fields
Sourcepub unsafe fn instigator(&self) -> &es_process_t
pub unsafe fn instigator(&self) -> &es_process_t
Gives a references to the field while checking for null.
§Safety
See ShouldNotBeNull safety requirements.