Type Definition libindy_sys::indyWalletAddRecordCb[][src]

type indyWalletAddRecordCb = Option<unsafe extern "C" fn(handle: indy_handle_t, type_: *const c_char, id: *const c_char, value: *const indy_u8_t, value_len: indy_u32_t, tags_json: *const c_char) -> indy_error_t>;

Create a new record in the wallet storage

#Params storage_handle: opened storage handle (See open handler) type_: allows to separate different record types collections id: the id of record value: the value of record (pointer to buffer) value_len: the value of record (buffer size) tags_json: the record tags used for search and storing meta information as json: { "tagName1": "tag value 1", // string value "tagName2": 123, // numeric value } Note that null means no tags