Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Return Vec<Tuple> does not compile #29

Description

@tulzke

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]?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions