Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow borrowed deserialization #281

Closed
@sfackler

Description

@sfackler

If we changed FromSql to look like

pub trait FromSql<'a> {
    fn from_sql(ty: &Type, buf: &'a [u8]) -> Result<Self>;
}

This would allow implementations for &str and &[u8] which would be pretty handy. It's unfortunately a breaking change so it'll have to wait

cc @jwilm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions