Skip to main content

pamoja_profile_to_json

Function pamoja_profile_to_json 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_profile_to_json( profile: *const PamojaProfile, ) -> *mut PamojaString
Expand description

Serializes a profile to its JSON manifest.

§Arguments

  • profile - the profile.

§Returns

A string the caller must release with pamoja_string_free, or null if profile is null or the profile cannot be serialized.

§Safety

profile must be a live handle from a call that produced one, or null.