I have a struct like this.
pub struct MemTableEntry {
pub key: Vec<u8>,
pub value: Option<Vec<u8>>,
pub timestamp: u128,
pub deleted: bool,
}
I wanted to calculate the size of each field of the struct programmatically. What are the ways to do that?