Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // sec/model.rs
- #[derive(Queryable, Insertable)]
- struct User {
- username: String,
- password: String
- }
- // src/schema.rs
- table! {
- users(id) {
- username -> Text,
- password -> Text
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement