Commit 0a55d133 authored by Emmanuel Raviart's avatar Emmanuel Raviart

Rename Sort to SortAmendement & SortScrutin.

parent c4a9ecba
Pipeline #101156 passed with stage
in 2 minutes and 16 seconds
......@@ -50,7 +50,7 @@ pub struct Amendement {
#[serde(rename = "signataires")]
pub signataires: Option<Signataires>,
#[serde(rename = "sort")]
pub sort: Option<Sort>,
pub sort: Option<SortAmendement>,
#[serde(rename = "triAmendement")]
pub tri_amendement: Option<String>,
#[serde(rename = "uid")]
......@@ -152,7 +152,7 @@ graphql_object!(Amendement: Context |&self| {
&self.signataires
}
field sort() -> &Option<Sort> {
field sort() -> &Option<SortAmendement> {
&self.sort
}
......@@ -202,7 +202,7 @@ pub struct Amendements {
#[serde(rename = "seanceDiscussion")]
pub seance_discussion: Option<String>,
#[serde(rename = "sort")]
pub sort: Option<Sort>,
pub sort: Option<SortAmendement>,
#[serde(rename = "subType")]
pub sub_type: Option<String>,
#[serde(rename = "#text")]
......@@ -294,7 +294,7 @@ graphql_object!(Amendements: Context |&self| {
}
}
field sort() -> &Option<Sort> {
field sort() -> &Option<SortAmendement> {
&self.sort
}
......@@ -747,7 +747,7 @@ graphql_object!(Signataires: Context |&self| {
#[derive(Debug, Deserialize, GraphQLObject)]
#[serde(deny_unknown_fields)]
pub struct Sort {
pub struct SortAmendement {
#[serde(rename = "dateSaisie")]
pub date_saisie: Option<String>,
#[serde(rename = "sortEnSeance")]
......
......@@ -180,7 +180,7 @@ pub struct Scrutin {
pub seance_ref: String,
#[serde(rename = "sessionRef")]
pub session_ref: String,
pub sort: Sort,
pub sort: SortScrutin,
#[serde(rename = "syntheseVote")]
pub synthese_vote: SyntheseVote,
pub titre: String,
......@@ -230,7 +230,7 @@ graphql_object!(Scrutin: Context |&self| {
&self.session_ref
}
field sort() -> &Sort {
field sort() -> &SortScrutin {
&self.sort
}
......@@ -270,7 +270,7 @@ pub struct ScrutinsJsonWrapper {
#[derive(Debug, Deserialize, GraphQLObject)]
#[serde(deny_unknown_fields)]
pub struct Sort {
pub struct SortScrutin {
code: String,
libelle: String,
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment