From d7b36ff18dcab67bbb21c51ed75cf63e17faeb07 Mon Sep 17 00:00:00 2001 From: Koen Bolhuis Date: Sat, 9 Jan 2021 17:03:03 +0100 Subject: [PATCH] Rename Submission to SubmitListens --- src/lib.rs | 2 +- src/models/request.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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>, }