pub fn json_set_text_string(&mut self, key: &Strn, value: &Strn) {
        let notused = self.to_void_ptr();
        //  Convert the key to C string.
        let key_cstr: *const u8 = self.key_strn_to_cstr(key);
        //  Convert the value to a C string.
        let value_cstr: *const u8 = self.value_strn_to_cstr(value);
        //  Encode the value.
        unsafe {
            mynewt_rust::json_helper_set_text_string(
                notused,
                key_cstr as *const c_char,
                value_cstr as *const c_char
            )
        };
    }
///  Encode a text value into the current JSON document with the specified key
Encode a text value into the current JSON document with the specified key
Encode a text value into the current JSON document with the specified key
pub fn json_set_text_string(&mut self, key: &Strn, value: &Strn) {
        let notused = self.to_void_ptr();
        //  Convert the key to C string.
        let key_cstr: *const u8 = self.key_strn_to_cstr(key);
        //  Convert the value to a C string.
        let value_cstr: *const u8 = self.value_strn_to_cstr(value);
        //  Encode the value.
        unsafe {
            mynewt_rust::json_helper_set_text_string(
                notused,
                key_cstr as *const c_char,
                value_cstr as *const c_char
            )
        };
    }
pub fn json_set_text_string ( & mut self , key : & Strn , value : & Strn ) { let notused = self . to_void_ptr ( ) ; //  Convert the key to C string. let key_cstr : * const u8 = self . key_strn_to_cstr ( key ) ; //  Convert the value to a C string. let value_cstr : * const u8 = self . value_strn_to_cstr ( value ) ; //  Encode the value. unsafe { mynewt_rust :: json_helper_set_text_string ( notused , key_cstr as * const c_char , value_cstr as * const c_char ) } ; }
Encode a text value into the current JSON document with the specified key
Encode a text value into the current JSON document with the specified key
&mut self
key
&Strn
value
&Strn
&mut self
key
&Strn
value
&Strn