pub fn text_file_line_of_insert<Key, Value>(key: &Key, value: Value, integrity: &mut Option<Integrity>)
    -> Result<String, serde_json::Error>
where
    Key: Serialize,
    Value: Serialize
{
    let key_val_json = serde_json::to_string(&(&key, &value))?;
    let mut line = "ins ".to_string() + &key_val_json;
    post_process_text_file_line(&mut line, integrity);
    Ok(line)
}
/// Make line with insert operation for write to file.
Make line with insert operation for write to file.
Make line with insert operation for write to file .
pub fn text_file_line_of_insert<Key, Value>(key: &Key, value: Value, integrity: &mut Option<Integrity>)
    -> Result<String, serde_json::Error>
where
    Key: Serialize,
    Value: Serialize
{
    let key_val_json = serde_json::to_string(&(&key, &value))?;
    let mut line = "ins ".to_string() + &key_val_json;
    post_process_text_file_line(&mut line, integrity);
    Ok(line)
}
pub fn text_file_line_of_insert < Key , Value > ( key : & Key , value : Value , integrity : & mut Option < Integrity > ) -> Result < String , serde_json :: Error > where Key : Serialize , Value : Serialize { let key_val_json = serde_json :: to_string ( & ( & key , & value ) ) ? ; let mut line = " " . to_string ( ) + & key_val_json ; post_process_text_file_line ( & mut line , integrity ) ; Ok ( line ) }
Make line with insert operation for write to file.
Make line with insert operation for write to file .
key
&Key
value
Value
integrity
&mut Option<Integrity>
key
&Key
value
Value
integrity
&mut Option<Integrity>