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

Allow try_from_row to work with &Row #243

Open
AlexPikalov opened this issue Jan 15, 2019 · 1 comment
Open

Allow try_from_row to work with &Row #243

AlexPikalov opened this issue Jan 15, 2019 · 1 comment

Comments

@AlexPikalov
Copy link
Owner

As of now try_from_raw works with Row and doesn't accept references.

In this issue we need to provide such possibility.

@ctopher7
Copy link

hi @AlexPikalov is there any trait that I could use so my I could call .try_from_row()? thanks

example:

fn query (some_struct : impl Trait){
--- inside for loop after get the data from db ---
  let my_row = some_struct.try_from_row(row).unwrap();
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants