#[derive(DeserializeView)]
{
// Attributes available to this derive:
#[pack_io]
}
Available on crate feature
derive only.Expand description
Derive pack_io::DeserializeView for a struct (zero-copy decode).
The struct MUST have exactly one lifetime parameter — used as the borrow
of the underlying input buffer. Field types must implement
pack_io::DeserializeView<'that_lifetime>. The built-in impls for
primitives, &'a str, &'a [u8], and the standard Option / Result
/ tuple / array types cover the common cases.
Enum support and multi-lifetime structs are planned for a later minor release.