mirror of
				https://github.com/pcvolkmer/osc-variant.git
				synced 2025-10-31 08:16:12 +00:00 
			
		
		
		
	chore: allow clippy linter warnings on some structs
This allows using original field names if they contain the struct name
This commit is contained in:
		| @@ -152,6 +152,8 @@ pub struct Entries { | ||||
|     entry: Vec<Entry>, | ||||
| } | ||||
|  | ||||
| #[allow(clippy::struct_excessive_bools)] | ||||
| #[allow(clippy::struct_field_names)] | ||||
| #[derive(Serialize, Deserialize, Debug)] | ||||
| #[serde(deny_unknown_fields)] | ||||
| pub struct Entry { | ||||
|   | ||||
| @@ -22,6 +22,7 @@ use crate::model::{Ansicht, Filter, FormEntry, Ordner, RefEntries, Script, Sorta | ||||
| use serde::{Deserialize, Serialize}; | ||||
|  | ||||
| // Ablaufschema ... | ||||
| #[allow(clippy::struct_field_names)] | ||||
| #[derive(Debug, Deserialize, Serialize)] | ||||
| pub struct Ablaufschema { | ||||
|     #[serde(rename = "Name")] | ||||
| @@ -106,6 +107,7 @@ pub struct AblaufschemaElement { | ||||
|     pub end_element_guid: String, | ||||
| } | ||||
|  | ||||
| #[allow(clippy::struct_field_names)] | ||||
| #[derive(Debug, Deserialize, Serialize)] | ||||
| pub struct Akte { | ||||
|     #[serde(rename = "Name")] | ||||
| @@ -152,6 +154,7 @@ pub struct AkteRolle { | ||||
|     pub modul_berechtigung: Vec<ModulBerechtigung>, | ||||
| } | ||||
|  | ||||
| #[allow(clippy::struct_field_names)] | ||||
| #[derive(Debug, Deserialize, Serialize)] | ||||
| pub struct RecordLinkage { | ||||
|     #[serde(rename = "ID")] | ||||
| @@ -262,6 +265,7 @@ pub struct Modul { | ||||
|     pub aufgabenliste_aktiv: Option<bool>, | ||||
| } | ||||
|  | ||||
| #[allow(clippy::struct_excessive_bools)] | ||||
| #[derive(Debug, Deserialize, Serialize)] | ||||
| pub struct ModulBerechtigung { | ||||
|     #[serde(rename = "ModulName")] | ||||
| @@ -287,6 +291,8 @@ pub struct ModulFormular { | ||||
|     pub guid: String, | ||||
| } | ||||
|  | ||||
| #[allow(clippy::struct_excessive_bools)] | ||||
| #[allow(clippy::struct_field_names)] | ||||
| #[derive(Serialize, Deserialize, Debug)] | ||||
| #[serde(deny_unknown_fields)] | ||||
| pub struct Entry { | ||||
|   | ||||
| @@ -105,6 +105,7 @@ pub struct Versions { | ||||
|     entry: Option<Vec<Version>>, | ||||
| } | ||||
|  | ||||
| #[allow(clippy::struct_field_names)] | ||||
| #[derive(Serialize, Deserialize, Debug)] | ||||
| #[serde(deny_unknown_fields)] | ||||
| pub struct Version { | ||||
| @@ -219,6 +220,7 @@ pub struct Categories { | ||||
|     content: Vec<Category>, | ||||
| } | ||||
|  | ||||
| #[allow(clippy::struct_field_names)] | ||||
| #[derive(Serialize, Deserialize, Debug)] | ||||
| #[serde(deny_unknown_fields)] | ||||
| pub struct Category { | ||||
|   | ||||
| @@ -56,6 +56,7 @@ impl FromStr for Profile { | ||||
|     } | ||||
| } | ||||
|  | ||||
| #[allow(clippy::struct_field_names)] | ||||
| #[derive(Deserialize)] | ||||
| pub struct Form { | ||||
|     pub name: String, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user