about summary refs log tree commit diff
path: root/kittybox-rs/util/src/lib.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2023-06-22 20:18:59 +0300
committerVika <vika@fireburn.ru>2023-06-22 20:18:59 +0300
commitd9a4fcd939974299322586c0beed1de7505d8d3d (patch)
treed19f55109f4421dabb768059a23fbd515f376b15 /kittybox-rs/util/src/lib.rs
parent8b1f39e5b30b5a3bad0f95d92a5909992139aca2 (diff)
downloadkittybox-d9a4fcd939974299322586c0beed1de7505d8d3d.tar.zst
kittybox-util: Derive sqlx::FromRow on MicropubChannel
Diffstat (limited to 'kittybox-rs/util/src/lib.rs')
-rw-r--r--kittybox-rs/util/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/kittybox-rs/util/src/lib.rs b/kittybox-rs/util/src/lib.rs
index f30dc2d..1c2f6f7 100644
--- a/kittybox-rs/util/src/lib.rs
+++ b/kittybox-rs/util/src/lib.rs
@@ -16,6 +16,7 @@ pub struct IndiewebEndpoints {
 
 /// Data structure representing a Micropub channel in the ?q=channels output.
 #[derive(Serialize, Deserialize, PartialEq, Debug)]
+#[cfg_attr(feature = "sqlx", derive(sqlx::FromRow))]
 pub struct MicropubChannel {
     /// The channel's UID. It is usually also a publically accessible permalink URL.
     pub uid: String,