summaryrefslogtreecommitdiffstats
path: root/src/resp_types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/resp_types.rs')
-rw-r--r--src/resp_types.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/resp_types.rs b/src/resp_types.rs
index e7a18f1..d32e69b 100644
--- a/src/resp_types.rs
+++ b/src/resp_types.rs
@@ -220,3 +220,14 @@ pub struct RespNotification<'a> {
pub unseen: bool,
}
+
+#[derive(Deserialize, Debug)]
+pub struct JustUser<'a> {
+ pub user: RespMinimalAuthorInfo<'a>,
+}
+
+#[derive(Deserialize, Debug)]
+pub struct RespList<'a, T: std::fmt::Debug + 'a> {
+ pub items: Vec<T>,
+ pub next_page: Option<Cow<'a, str>>,
+}