Created
November 5, 2022 21:28
-
-
Save sachaarbonel/306fe770c0b7926ff60501d9eda156c0 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
fn main() -> anyhow::Result<()> { | |
let json = fs::read_to_string("data/books.json")?; | |
let library: Library = serde_json::from_str(&json)?; | |
for book in library.books.clone() { | |
println!("Embedding book: {}", book.title); | |
} | |
Ok(()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment