diff options
author | Vika <vika@fireburn.ru> | 2023-06-22 20:18:59 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2023-06-22 20:18:59 +0300 |
commit | d9a4fcd939974299322586c0beed1de7505d8d3d (patch) | |
tree | d19f55109f4421dabb768059a23fbd515f376b15 /kittybox-rs/util/src | |
parent | 8b1f39e5b30b5a3bad0f95d92a5909992139aca2 (diff) | |
download | kittybox-d9a4fcd939974299322586c0beed1de7505d8d3d.tar.zst |
kittybox-util: Derive sqlx::FromRow on MicropubChannel
Diffstat (limited to 'kittybox-rs/util/src')
-rw-r--r-- | kittybox-rs/util/src/lib.rs | 1 |
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, |