fix_codec_rs/field.rs
1use crate::tag::Tag;
2
3pub const FIELD_SEPARATOR: u8 = 0x01;
4pub const FIELD_SEPARATOR_DISPLAY: char = '|'; // Only use to printing to UI or text-based debug
5// purpose
6pub const FIELD_KEY_VALUE_SEPARATOR: u8 = b'=';
7
8#[derive(Debug)]
9pub struct Field<'a> {
10 pub tag: Tag,
11 pub value: &'a [u8],
12}