mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-23 20:18:09 +03:00
Fixed cipher import, created missing data structs instead of using generic Value, and fixed some warnings
This commit is contained in:
1 parent
c8b45f5fe5
commit
dfefbf1f31
13 files changed
+190
-131
No files matched your search
@@ -11,5 +11,13 @@ pub use self::web::routes as web_routes;
|
||||
use rocket::response::status::BadRequest;
|
||||
use rocket_contrib::Json;
|
||||
|
||||
// Type aliases for API methods results
|
||||
type JsonResult = Result<Json, BadRequest<Json>>;
|
||||
type EmptyResult = Result<(), BadRequest<Json>>;
|
||||
|
||||
// Common structs representing JSON data received
|
||||
#[derive(Deserialize)]
|
||||
#[allow(non_snake_case)]
|
||||
struct PasswordData {
|
||||
masterPasswordHash: String
|
||||
}
|
||||
Reference in new issue
Block a user