feat: handle error 400 for invalid ctokens

This commit is contained in:
ThetaDev 2023-01-23 23:06:56 +01:00
parent f7fbf40721
commit cc50862408
4 changed files with 64 additions and 9 deletions

View file

@ -233,6 +233,20 @@ pub(crate) struct MusicContinuationDataInner {
pub continuation: String,
}
// ERROR
#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub(crate) struct ErrorResponse {
pub error: ErrorResponseContent,
}
#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub(crate) struct ErrorResponseContent {
pub message: String,
}
/*
#MAPPING
*/