update queued song #28
10
src/main.rs
10
src/main.rs
@@ -81,7 +81,15 @@ async fn some_work(
|
||||
)
|
||||
.await
|
||||
{
|
||||
Ok(_response) => Ok(()),
|
||||
Ok(response) => {
|
||||
match response.json::<update_queued_song::response::Response>().await {
|
||||
Ok(_inner_response) => {
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(std::io::Error::new(std::io::ErrorKind::Other,
|
||||
err.to_string()))
|
||||
}
|
||||
}
|
||||
Err(err) => Err(std::io::Error::new(
|
||||
std::io::ErrorKind::Other,
|
||||
err.to_string(),
|
||||
|
@@ -27,4 +27,10 @@ pub async fn update_queued_song(
|
||||
|
||||
pub mod response {
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct Response {
|
||||
pub message: String,
|
||||
pub data: Vec<uuid::Uuid>,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user