Rename Submission to SubmitListens

This commit is contained in:
Koen Bolhuis 2021-01-09 17:03:03 +01:00
parent e82b685776
commit d7b36ff18d
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ impl Client {
}
/// Endpoint: `submit-listens`
pub fn submit_listens(&mut self, token: &str, data: Submission) -> Result<SubmitListensResponse, Error> {
pub fn submit_listens(&mut self, token: &str, data: SubmitListens) -> Result<SubmitListensResponse, Error> {
self.post(Endpoint::SubmitListens, token, data)
}

View File

@ -5,7 +5,7 @@ use serde::Serialize;
// --------- submit-listens
#[derive(Debug, Serialize)]
pub struct Submission<'a> {
pub struct SubmitListens<'a> {
pub listen_type: ListenType,
pub payload: Vec<Payload<'a>>,
}