mangadex_api_schema_rust/v5/
forum_thread.rs1use mangadex_api_types::RelationshipType;
2use serde::Deserialize;
3
4#[derive(Clone, Debug, Deserialize, PartialEq, Default)]
5#[serde(rename_all = "camelCase")]
6#[non_exhaustive]
7#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
8#[cfg_attr(feature = "specta", derive(specta::Type))]
9pub struct ForumThreadObject<A, T = RelationshipType> {
10 pub type_: T,
11 pub id: u32,
12 pub attributes: A,
13}
14
15#[derive(Clone, Debug, Deserialize, PartialEq, Default)]
16#[serde(rename_all = "camelCase")]
17#[non_exhaustive]
18#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
19#[cfg_attr(feature = "specta", derive(specta::Type))]
20pub struct ForumThreadAttributes {
21 pub replies_count: u32,
22}