1 2 3 4 5 6 7 8 9
use std::borrow::Cow; pub type Str = &'static str; pub struct Json<T>(pub T); pub struct Text<'a>(pub Cow<'a, str>); pub struct Bytes<'a>(pub Cow<'a, [u8]>);