Skip to main content

safe_write_str

Function safe_write_str 

Source
pub fn safe_write_str(buffer: &mut String, s: &str) -> Result<(), Error>
Expand description

Safely append a string slice to a buffer for JSON field construction.

ยงErrors

Returns CBKD101_INVALID_FIELD_TYPE if the write fails.