]> Untitled Git - lemmy.git/blobdiff - crates/api_structs/src/site.rs
Use URL type in most outstanding struct fields (#1468)
[lemmy.git] / crates / api_structs / src / site.rs
index edee17a85bc151517d601660e9a0a2bdab921b0b..9f69e63bcc2ddb3a6f804ae75ada0f3888e5447e 100644 (file)
@@ -13,6 +13,7 @@ use lemmy_db_views_moderator::{
   mod_sticky_post_view::ModStickyPostView,
 };
 use serde::{Deserialize, Serialize};
+use url::Url;
 
 #[derive(Deserialize, Debug)]
 pub struct Search {
@@ -60,8 +61,8 @@ pub struct GetModlogResponse {
 pub struct CreateSite {
   pub name: String,
   pub description: Option<String>,
-  pub icon: Option<String>,
-  pub banner: Option<String>,
+  pub icon: Option<Url>,
+  pub banner: Option<Url>,
   pub enable_downvotes: bool,
   pub open_registration: bool,
   pub enable_nsfw: bool,