Rename Submission to SubmitListens
This commit is contained in:
parent
e82b685776
commit
d7b36ff18d
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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>>,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue