struct_fmt is a way of encoding and decoding structured data buf in extensible format like json, protobuf etc. but struct_fmt can reduce some logic decoding works.