#[no_mangle]
pub unsafe extern "C" fn graph_import_users_data(
    graph_state: *mut GraphState,
    payloads: *const ImportBundle,
    payloads_len: usize
) -> FFIResult<bool, GraphError>
Expand description

Import users data to graph state

Safety

This function is unsafe because it dereferences a raw pointer

Arguments

  • graph_state - a pointer to a graph state
  • payloads - a pointer to an array of payloads
  • payloads_len - the length of the payloads array

Returns

  • bool - true if the users data was imported, false otherwise

Errors

  • GraphError - if the graph state fails to import users data