mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 03:11:32 +00:00
Fix ts optionals.
This commit is contained in:
parent
1ff8ae0641
commit
2351c7a93b
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
use crate::newtypes::{CommentReportId, PostReportId, ReportCombinedId};
|
||||
use crate::newtypes::{CommentReportId, PostReportId, PrivateMessageReportId, ReportCombinedId};
|
||||
#[cfg(feature = "full")]
|
||||
use crate::schema::report_combined;
|
||||
use chrono::{DateTime, Utc};
|
||||
|
@ -17,6 +17,10 @@ use ts_rs::TS;
|
|||
pub struct ReportCombined {
|
||||
pub id: ReportCombinedId,
|
||||
pub published: DateTime<Utc>,
|
||||
#[cfg_attr(feature = "full", ts(optional))]
|
||||
pub post_report_id: Option<PostReportId>,
|
||||
#[cfg_attr(feature = "full", ts(optional))]
|
||||
pub comment_report_id: Option<CommentReportId>,
|
||||
#[cfg_attr(feature = "full", ts(optional))]
|
||||
pub private_message_report_id: Option<PrivateMessageReportId>,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue