Only derive WithoutId for Community with "full" feature

pull/3755/head
dullbananas 11 months ago committed by GitHub
parent 55835e8c2a
commit de0e9c6fdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save