atat
atat copied to clipboard
Handle borrowed data
When deserializing responses in serde, it should be possible to have responses with borrowed data, eg:
pub struct SocketData<'a> {
pub socket: u8,
pub data: &'a str,
}
ref: https://serde.rs/lifetimes.html