mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-04-19 19:56:50 +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:
parent
1215daca1e
commit
c345ffde6b
@ -152,6 +152,8 @@ pub struct Entries {
|
|||||||
entry: Vec<Entry>,
|
entry: Vec<Entry>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::struct_excessive_bools)]
|
||||||
|
#[allow(clippy::struct_field_names)]
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
#[serde(deny_unknown_fields)]
|
#[serde(deny_unknown_fields)]
|
||||||
pub struct Entry {
|
pub struct Entry {
|
||||||
|
@ -22,6 +22,7 @@ use crate::model::{Ansicht, Filter, FormEntry, Ordner, RefEntries, Script, Sorta
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
// Ablaufschema ...
|
// Ablaufschema ...
|
||||||
|
#[allow(clippy::struct_field_names)]
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Deserialize, Serialize)]
|
||||||
pub struct Ablaufschema {
|
pub struct Ablaufschema {
|
||||||
#[serde(rename = "Name")]
|
#[serde(rename = "Name")]
|
||||||
@ -106,6 +107,7 @@ pub struct AblaufschemaElement {
|
|||||||
pub end_element_guid: String,
|
pub end_element_guid: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::struct_field_names)]
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Deserialize, Serialize)]
|
||||||
pub struct Akte {
|
pub struct Akte {
|
||||||
#[serde(rename = "Name")]
|
#[serde(rename = "Name")]
|
||||||
@ -152,6 +154,7 @@ pub struct AkteRolle {
|
|||||||
pub modul_berechtigung: Vec<ModulBerechtigung>,
|
pub modul_berechtigung: Vec<ModulBerechtigung>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::struct_field_names)]
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Deserialize, Serialize)]
|
||||||
pub struct RecordLinkage {
|
pub struct RecordLinkage {
|
||||||
#[serde(rename = "ID")]
|
#[serde(rename = "ID")]
|
||||||
@ -262,6 +265,7 @@ pub struct Modul {
|
|||||||
pub aufgabenliste_aktiv: Option<bool>,
|
pub aufgabenliste_aktiv: Option<bool>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::struct_excessive_bools)]
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Deserialize, Serialize)]
|
||||||
pub struct ModulBerechtigung {
|
pub struct ModulBerechtigung {
|
||||||
#[serde(rename = "ModulName")]
|
#[serde(rename = "ModulName")]
|
||||||
@ -287,6 +291,8 @@ pub struct ModulFormular {
|
|||||||
pub guid: String,
|
pub guid: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::struct_excessive_bools)]
|
||||||
|
#[allow(clippy::struct_field_names)]
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
#[serde(deny_unknown_fields)]
|
#[serde(deny_unknown_fields)]
|
||||||
pub struct Entry {
|
pub struct Entry {
|
||||||
|
@ -105,6 +105,7 @@ pub struct Versions {
|
|||||||
entry: Option<Vec<Version>>,
|
entry: Option<Vec<Version>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::struct_field_names)]
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
#[serde(deny_unknown_fields)]
|
#[serde(deny_unknown_fields)]
|
||||||
pub struct Version {
|
pub struct Version {
|
||||||
@ -219,6 +220,7 @@ pub struct Categories {
|
|||||||
content: Vec<Category>,
|
content: Vec<Category>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::struct_field_names)]
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
#[serde(deny_unknown_fields)]
|
#[serde(deny_unknown_fields)]
|
||||||
pub struct Category {
|
pub struct Category {
|
||||||
|
@ -56,6 +56,7 @@ impl FromStr for Profile {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::struct_field_names)]
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
pub struct Form {
|
pub struct Form {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user