52 lines
1.5 KiB
Rust
52 lines
1.5 KiB
Rust
//! Generated structs for Antares JSON response
|
|
use serde::{Deserialize, Serialize};
|
|
use zeroize::Zeroizing;
|
|
|
|
#[derive(Clone)]
|
|
pub struct AntaresLogin {
|
|
pub url: String,
|
|
pub usercode: String,
|
|
pub password: Zeroizing<String>
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
#[serde(rename_all = "PascalCase")]
|
|
pub struct AntaresItem {
|
|
pub brutto_suly: Option<f64>,
|
|
pub brutto_suly_mennyisegi_egyseg: Option<String>,
|
|
pub brutto_suly_szorzo: Option<f64>,
|
|
pub cikk_jellemzok: Option<Vec<CikkJellemzo>>,
|
|
pub cikk_kepek: Option<Vec<CikkKep>>,
|
|
pub cikk_megnevezes: Option<String>,
|
|
pub cikk_megnevezes_rovid: Option<String>,
|
|
pub cikkszam: Option<String>,
|
|
pub kshszam: Option<String>,
|
|
pub mennyisegi_egyseg_kod: Option<String>,
|
|
pub muszaki_leiras: Option<String>,
|
|
pub netto_kisker_ar: Option<f64>,
|
|
pub suly: Option<f64>,
|
|
pub suly_mennyisegi_egyseg: Option<String>,
|
|
pub szabad_keszlet: Option<i64>,
|
|
pub szarmazasi_orszag_kod: Option<String>,
|
|
pub utolso_modositas_datum: Option<String>,
|
|
pub utolso_mozgas_datum: Option<String>,
|
|
pub vonalkod: Option<String>,
|
|
pub web: Option<String>,
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
#[serde(rename_all = "PascalCase")]
|
|
pub struct CikkJellemzo {
|
|
pub jellemzo_ertek: Option<String>,
|
|
pub jellemzo_nev: Option<String>,
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
#[serde(rename_all = "PascalCase")]
|
|
pub struct CikkKep {
|
|
pub url: Option<String>,
|
|
}
|
|
|
|
// Convenience type alias for top-level array
|
|
pub type Antares = Vec<AntaresItem>;
|