Fixing ts-rs serialization.

custom_thumbnails
Dessalines 2024-02-04 21:48:01 -05:00
parent d9184acb17
commit 9319c762a5
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@ pub struct CreatePost {
pub honeypot: Option<String>,
pub nsfw: Option<bool>,
pub language_id: Option<LanguageId>,
#[cfg_attr(feature = "full", ts(type = "string"))]
/// Instead of fetching a thumbnail, use a custom one.
pub custom_thumbnail: Option<Url>,
}
@ -116,6 +117,7 @@ pub struct EditPost {
pub body: Option<String>,
pub nsfw: Option<bool>,
pub language_id: Option<LanguageId>,
#[cfg_attr(feature = "full", ts(type = "string"))]
/// Instead of fetching a thumbnail, use a custom one.
pub custom_thumbnail: Option<Url>,
}