Function truncate

Source
pub fn truncate(protobuf: &ParseResult, max_length: usize) -> Result<String>