diff options
author | Vika <vika@fireburn.ru> | 2024-08-20 00:35:30 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2024-08-20 01:46:13 +0300 |
commit | d6a8525274ccd96a5ce9540ea2ba1e463c84ff90 (patch) | |
tree | 9daa6fceda3f019629f99acb1b150882a5e151d4 /util/src/lib.rs | |
parent | a46e16258f83cc5939c568bba3a62ccc28114365 (diff) | |
download | kittybox-d6a8525274ccd96a5ce9540ea2ba1e463c84ff90.tar.zst |
kittybox-util: 0.1.0 -> 0.2.0
Micropub types are now more coherent and gathered in one place.
Diffstat (limited to 'util/src/lib.rs')
-rw-r--r-- | util/src/lib.rs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/util/src/lib.rs b/util/src/lib.rs index c840e59..a919fd8 100644 --- a/util/src/lib.rs +++ b/util/src/lib.rs @@ -14,16 +14,6 @@ pub struct IndiewebEndpoints { pub microsub: Option<String>, } -/// 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, - /// The channel's user-friendly name used to recognize it in lists. - pub name: String, -} - #[derive(Debug, Default)] /// Common types of webmentions. pub enum MentionType { @@ -40,10 +30,6 @@ pub enum MentionType { Mention } -/// Common errors from the IndieWeb protocols that can be reused between modules. -pub mod error; -pub use error::{ErrorType, MicropubError}; - /// Common data-types useful in creating smart authentication systems. pub mod auth { #[derive(PartialEq, Eq, Hash, Clone, Copy)] @@ -57,6 +43,8 @@ pub mod auth { } } +pub mod micropub; + /// A collection of traits for implementing a robust job queue. pub mod queue; |