Skip to main content

put_string_field

Function put_string_field 

Source
pub fn put_string_field(
    field_number: u32,
    value: &str,
    buf: &mut impl EncodeSink,
)
Expand description

Write a tagged string field (tag + length-prefixed UTF-8 payload).

Fused tag+payload sibling of encode_string; exists so generated write_to bodies are one call per field.