This commit is contained in:
Oliver Atkinson
2025-05-16 09:22:39 -06:00
parent 141da7c17c
commit ba260b02bc
2 changed files with 25 additions and 20 deletions

View File

@@ -269,15 +269,10 @@ impl Chapter {
#[derive(Deserialize)]
pub struct Bible {
#[serde(rename = "@translation")]
translation_name: String,
pub translation_name: String,
#[serde(rename = "testament")]
testaments: Vec<Testament>,
}
impl Display for Bible {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}",self.translation_name)
}
}
#[derive(Deserialize)]
struct Testament {