mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-16 01:14:02 +00:00
16 lines
406 B
Rust
16 lines
406 B
Rust
|
use crate::newtypes::LanguageId;
|
||
|
use serde::{Deserialize, Serialize};
|
||
|
|
||
|
#[cfg(feature = "full")]
|
||
|
use crate::schema::language;
|
||
|
|
||
|
#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]
|
||
|
#[cfg_attr(feature = "full", derive(Queryable, Identifiable))]
|
||
|
#[cfg_attr(feature = "full", table_name = "language")]
|
||
|
pub struct Language {
|
||
|
#[serde(skip)]
|
||
|
pub id: LanguageId,
|
||
|
pub code: String,
|
||
|
pub name: String,
|
||
|
}
|