mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-26 21:01:34 +00:00
Only derive WithoutId for Community with "full" feature
This commit is contained in:
parent
55835e8c2a
commit
de0e9c6fdc
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@ use ts_rs::TS;
|
|||
use typed_builder::TypedBuilder;
|
||||
|
||||
#[skip_serializing_none]
|
||||
#[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize, WithoutId!)]
|
||||
#[cfg_attr(feature = "full", derive(Queryable, Identifiable, TS))]
|
||||
#[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)]
|
||||
#[cfg_attr(feature = "full", derive(Queryable, Identifiable, TS, WithoutId!))]
|
||||
#[cfg_attr(feature = "full", diesel(table_name = community))]
|
||||
#[cfg_attr(feature = "full", ts(export))]
|
||||
/// A community.
|
||||
|
|
Loading…
Reference in a new issue