tarantool-module icon indicating copy to clipboard operation
tarantool-module copied to clipboard

Return Vec<Tuple> does not compile

Open tulzke opened this issue 5 months ago • 0 comments

So, i don't understant why is this works fine:

#[proc]
pub fn get() -> Result<Tuple, String>

But this is produced compile error:

#[proc]
pub fn get_batch() -> Result<Vec<Tuple>, String>
error[E0277]: the trait bound `tarantool::tuple::Tuple: Serialize` is not satisfied

Why does [proc] macro require Serialize, but the basic type Tuple does not implement it? And how is Result<Tuple,String> is working with [proc]?

tulzke avatar Jul 16 '25 22:07 tulzke