about summary refs log tree commit diff
path: root/util/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'util/src/lib.rs')
-rw-r--r--util/src/lib.rs16
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;