aboutsummaryrefslogtreecommitdiffstats
path: root/src/abook.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/abook.rs')
-rw-r--r--src/abook.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/abook.rs b/src/abook.rs
index d7d38cd..c7ceeb1 100644
--- a/src/abook.rs
+++ b/src/abook.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(Debug, Default, Deserialize)]
+#[derive(Debug, Default, Deserialize, ZotAPI)]
pub struct Abook {
#[serde(rename = "abook_id")]
pub id: u32,
@@ -105,12 +106,6 @@ pub struct Abook {
}
-impl Abook {
- pub fn z() -> AbookRequest {
- AbookRequest::default()
- }
-}
-
impl<'a> TryFrom<&'a str> for Abook {
type Error = Error;