aboutsummaryrefslogtreecommitdiffstats
path: root/src/verify.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/verify.rs')
-rw-r--r--src/verify.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/verify.rs b/src/verify.rs
index 8edb2f1..57e250d 100644
--- a/src/verify.rs
+++ b/src/verify.rs
@@ -14,11 +14,12 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use crate::{client::Client, error::Error, XChan};
+use crate::{client::Client, error::Error, XChan, ZotAPI};
use serde::Deserialize;
use std::convert::TryFrom;
+use zotapi_derive::ZotAPI;
-#[derive(Deserialize, Debug)]
+#[derive(Deserialize, Debug, ZotAPI)]
pub struct Channel {
#[serde(alias = "channel_id")]
pub id: u32,
@@ -129,12 +130,6 @@ pub struct Channel {
pub xchan: XChan,
}
-impl Channel {
- pub fn z() -> ChannelRequest {
- ChannelRequest::default()
- }
-}
-
impl<'a> TryFrom<&'a str> for Channel {
type Error = Error;