mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-11-22 20:03:19 +00:00
Hide some warnings for unused struct fields
This commit is contained in:
parent
0bb33e04bb
commit
b4c95fb4ac
2 changed files with 6 additions and 3 deletions
|
@ -49,6 +49,7 @@ struct RegisterData {
|
||||||
MasterPasswordHint: Option<String>,
|
MasterPasswordHint: Option<String>,
|
||||||
Name: Option<String>,
|
Name: Option<String>,
|
||||||
Token: Option<String>,
|
Token: Option<String>,
|
||||||
|
#[allow(dead_code)]
|
||||||
OrganizationUserId: Option<String>,
|
OrganizationUserId: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -377,7 +377,7 @@ fn delete_organization_collection(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case, dead_code)]
|
||||||
struct DeleteCollectionData {
|
struct DeleteCollectionData {
|
||||||
Id: String,
|
Id: String,
|
||||||
OrgId: String,
|
OrgId: String,
|
||||||
|
@ -1301,7 +1301,7 @@ fn get_plans_tax_rates(_headers: Headers, _conn: DbConn) -> Json<Value> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case, dead_code)]
|
||||||
struct OrgImportGroupData {
|
struct OrgImportGroupData {
|
||||||
Name: String, // "GroupName"
|
Name: String, // "GroupName"
|
||||||
ExternalId: String, // "cn=GroupName,ou=Groups,dc=example,dc=com"
|
ExternalId: String, // "cn=GroupName,ou=Groups,dc=example,dc=com"
|
||||||
|
@ -1311,7 +1311,8 @@ struct OrgImportGroupData {
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
struct OrgImportUserData {
|
struct OrgImportUserData {
|
||||||
Email: String, // "user@maildomain.net"
|
Email: String, // "user@maildomain.net"
|
||||||
|
#[allow(dead_code)]
|
||||||
ExternalId: String, // "uid=user,ou=People,dc=example,dc=com"
|
ExternalId: String, // "uid=user,ou=People,dc=example,dc=com"
|
||||||
Deleted: bool,
|
Deleted: bool,
|
||||||
}
|
}
|
||||||
|
@ -1319,6 +1320,7 @@ struct OrgImportUserData {
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
struct OrgImportData {
|
struct OrgImportData {
|
||||||
|
#[allow(dead_code)]
|
||||||
Groups: Vec<OrgImportGroupData>,
|
Groups: Vec<OrgImportGroupData>,
|
||||||
OverwriteExisting: bool,
|
OverwriteExisting: bool,
|
||||||
Users: Vec<OrgImportUserData>,
|
Users: Vec<OrgImportUserData>,
|
||||||
|
|
Loading…
Reference in a new issue