Proper jsonb field encoding
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
@@ -179,6 +179,12 @@ fn main() {
|
||||
print_user_details(inactive_user);
|
||||
}
|
||||
|
||||
// Delete a user based on an index for good measure
|
||||
db.collection::<User>()
|
||||
.expect("can open user collection")
|
||||
.delete::<username, _>("janesmith")
|
||||
.expect("can delete existing user");
|
||||
|
||||
println!("\n--- User Model Information ---");
|
||||
println!("User DB Prefix: {}", User::db_prefix());
|
||||
|
||||
|
Reference in New Issue
Block a user