The resty::Serialize trait provides a unified interface for serialization to a Vec\<u8\>.
This allows free choice of serialization format and framework.
An example using serde and serde_json
```rust
struct MyResponse {
foo: String,
bar: f64
};
fn serialize<'a, T: serde::Serialize<'a>>(
) -> Result<T, Box<dyn std::error::Error>> {
}
```