[−][src]Function fxaclient_ffi::fxa_to_json
#[no_mangle]pub extern "C" fn fxa_to_json(
handle: u64,
error: &mut ExternError
) -> *mut c_char
Serializes the state of a [FirefoxAccount] instance. It can be restored later with [fxa_from_json].
It is the responsability of the caller to persist that serialized state regularly (after operations that mutate [FirefoxAccount]) in a secure location.
Safety
A destructor [fxa_str_free] is provided for releasing the memory for this pointer type.