[−][src]Function ejdb_sys::bson_rename
pub unsafe extern "C" fn bson_rename(
fields: *mut TCMAP,
bsbuf: *const c_void,
bsout: *mut bson,
rencnt: *mut c_int
) -> c_int
@brief Rename a fields specified by fields
rename mapping.
This operation unsets both all and new fieldpaths and then sets new fieldpath values.
@param fields Rename mapping old fieldpath
to new fieldpath
.
@param bsbuf BSON buffer to process.
@param bsout Allocated and not finished output bson* object
@param rencnt A number of fieldpaths actually renamed.