indyWalletAddRecordCb

Type Alias indyWalletAddRecordCb 

Source
pub 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>;
Expand description

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

Aliased Type§

pub enum indyWalletAddRecordCb {
    None,
    Some(unsafe extern "C" fn(i32, *const i8, *const i8, *const u8, u32, *const i8) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(i32, *const i8, *const i8, *const u8, u32, *const i8) -> i32)

Some value of type T.