Trait tarantool::tuple::Decode

source ·
pub trait Decode<'de>: Sized {
    // Required method
    fn decode(data: &'de [u8]) -> Result<Self>;
}
Expand description

Decode Types implementing this trait can be decoded from msgpack.

Tuple also implements Decode with an implementation which just copies the bytes as is (and validates them).

Required Methods§

source

fn decode(data: &'de [u8]) -> Result<Self>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Decode<'_> for RawByteBuf

source§

impl Decode<'_> for Tuple

source§

impl<'de> Decode<'de> for &'de RawBytes

source§

impl<'de, T> Decode<'de> for T
where T: Deserialize<'de>,