aboutsummaryrefslogtreecommitdiffstats
path: root/src/abconfig.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/abconfig.rs')
-rw-r--r--src/abconfig.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/abconfig.rs b/src/abconfig.rs
index ebb7e2b..8904ca3 100644
--- a/src/abconfig.rs
+++ b/src/abconfig.rs
@@ -14,13 +14,14 @@
// 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};
+use crate::{client::Client, error::Error, ZotAPI};
use serde::Deserialize;
+use zotapi_derive::ZotAPI;
/// A struct for storing a key value pair with a category in
/// relation to a contact. Typically used to store permissions
/// a given contact has on a given channel.
-#[derive(Debug, Default, Deserialize)]
+#[derive(Debug, Default, Deserialize, ZotAPI)]
pub struct ABConfig {
/// Database ID for this entry
pub id: u32,
@@ -41,12 +42,6 @@ pub struct ABConfig {
pub v: String,
}
-impl ABConfig {
- pub fn z() -> ABConfigRequest {
- ABConfigRequest::default()
- }
-}
-
#[derive(Default)]
pub struct ABConfigRequest {
abook_id: Option<u32>,