Skip to content

Document that Insertable isn't derived for borrowed structs if the struct uses serialize_as #4724

@inklesspen

Description

@inklesspen

generate_borrowed_insert = false; // as soon as we hit one field with #[diesel(serialize_as)] there is no point in generating the impl of Insertable for borrowed structs

This was tripping me up today because the guides and API docs were all saying using &mystruct should work, but the compiler said nuh-uh.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions