Commit 62709864 authored by Emmanuel Raviart's avatar Emmanuel Raviart

A lot of new fields have appeared in structure Amendements.

parent 7acb8d73
Pipeline #97632 failed with stage
in 1 minute and 10 seconds
......@@ -60,13 +60,44 @@ pub struct Amendements {
pub amendements: Vec<Amendement>,
#[serde(rename = "annexeExposeSommaire")]
pub annexe_expose_sommaire: Option<EmptyChoice>,
#[serde(rename = "article99")]
pub article_99: Option<String>,
#[serde(rename = "articleAdditionnel")]
pub article_additionnel: Option<String>,
pub offset: Option<EmptyChoice>,
#[serde(default, deserialize_with = "str_to_option_bool")]
pub transcription: Option<bool>,
pub canonique: Option<bool>,
#[serde(default, deserialize_with = "str_to_vec", rename = "dateDepot")]
pub date_depot: Vec<String>,
#[serde(rename = "dateDispoRepresentation")]
pub date_dispo_representation: Option<String>,
#[serde(rename = "dateDistribution")]
pub date_distribution: Option<String>,
#[serde(rename = "divisionCodeLoi")]
pub division_code_loi: Option<EmptyChoice>,
#[serde(rename = "documentURI")]
pub document_uri: Option<String>,
pub libelle: Option<String>,
#[serde(rename = "lignesCredits")]
pub lignes_credits: Option<EmptyChoice>,
#[serde(rename = "montantNegatif")]
pub montant_negatif: Option<String>,
#[serde(rename = "montantPositif")]
pub montant_positif: Option<String>,
pub offset: Option<EmptyChoice>,
#[serde(rename = "seanceDiscussion")]
pub seance_discussion: Option<String>,
#[serde(rename = "sort")]
pub sort: Option<Sort>,
#[serde(rename = "subType")]
pub sub_type: Option<String>,
#[serde(rename = "#text")]
pub text: Option<String>,
#[serde(default, deserialize_with = "str_to_option_bool")]
pub transcription: Option<bool>,
#[serde(default, deserialize_with = "map_to_vec", rename = "typeMime")]
pub type_mime: Vec<TypeMime>,
#[serde(default, deserialize_with = "str_to_option_bool")]
pub verbatim: Option<bool>,
}
#[derive(Debug, Deserialize, GraphQLObject)]
......@@ -165,7 +196,6 @@ pub struct LigneCredit {
pub cp: Option<Montants>,
#[serde(rename = "id")]
pub id: Option<String>,
#[serde(rename = "libelle")]
pub libelle: Option<String>,
}
......@@ -247,7 +277,6 @@ pub struct ProgrammeObject {
pub action: Option<String>,
#[serde(rename = "id")]
pub id: Option<String>,
#[serde(rename = "libelle")]
pub libelle: Option<String>,
#[serde(rename = "lignesCredits")]
pub lignes_credits: Option<LignesCredits>,
......
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