Advertisement
Guest User

Untitled

a guest
May 28th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. // sec/model.rs
  2. #[derive(Queryable, Insertable)]
  3. struct User {
  4. username: String,
  5. password: String
  6. }
  7.  
  8. // src/schema.rs
  9. table! {
  10. users(id) {
  11. username -> Text,
  12. password -> Text
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement