Retrieve songs #66

Merged
kdeng00 merged 5 commits from retrieve_songs into icarus_v2_support 2025-08-30 12:10:03 -04:00
Showing only changes of commit d903f51026 - Show all commits
+2 -2
View File
@@ -13,7 +13,7 @@ mod response {
#[derive(Debug, serde::Deserialize)] #[derive(Debug, serde::Deserialize)]
pub struct Response { pub struct Response {
pub message: String, pub message: String,
pub data: Vec<icarus_models::song::Song> pub data: Vec<icarus_models::song::Song>,
} }
} }
} }
@@ -44,7 +44,7 @@ impl RetrieveRecords {
Ok(parsed) => { Ok(parsed) => {
println!("Response message: {:?}", parsed.message); println!("Response message: {:?}", parsed.message);
Ok(parsed.data) Ok(parsed.data)
} }
Err(err) => Err(std::io::Error::other(err.to_string())), Err(err) => Err(std::io::Error::other(err.to_string())),
} }
} }