diff --git a/src/lib.rs b/src/lib.rs index a00aefa..517ddaf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -155,7 +155,7 @@ impl Client { } /// Endpoint: `submit-listens` - pub fn submit_listens(&mut self, token: &str, data: Submission) -> Result { + pub fn submit_listens(&mut self, token: &str, data: SubmitListens) -> Result { self.post(Endpoint::SubmitListens, token, data) } diff --git a/src/models/request.rs b/src/models/request.rs index bb76954..3677c4f 100644 --- a/src/models/request.rs +++ b/src/models/request.rs @@ -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>, }