Created
November 5, 2022 21:26
-
-
Save sachaarbonel/8649788f5ddf2c4375d4416fa2bf37f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use serde::{Deserialize}; | |
#[derive(Debug, Deserialize)] | |
pub struct Library { | |
pub books: Vec<Book>, | |
} | |
#[derive(Debug, Deserialize, Clone)] | |
pub struct Book { | |
pub title: String, | |
pub author: String, | |
pub summary: String, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment