Fix #2
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user