mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-12 10:29:22 +00:00
39 lines
1.1 KiB
Rust
39 lines
1.1 KiB
Rust
use lemmy_db_schema::source::tagline::Tagline;
|
|
use serde::{Deserialize, Serialize};
|
|
use serde_with::skip_serializing_none;
|
|
#[cfg(feature = "full")]
|
|
use ts_rs::TS;
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, Hash)]
|
|
#[cfg_attr(feature = "full", derive(TS))]
|
|
#[cfg_attr(feature = "full", ts(export))]
|
|
/// Create a tagline
|
|
pub struct CreateTagline {
|
|
pub content: String,
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
#[cfg_attr(feature = "full", derive(TS))]
|
|
#[cfg_attr(feature = "full", ts(export))]
|
|
pub struct TaglineResponse {
|
|
pub tagline: Tagline,
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
#[cfg_attr(feature = "full", derive(TS))]
|
|
#[cfg_attr(feature = "full", ts(export))]
|
|
/// A response for custom emojis.
|
|
pub struct ListTaglinesResponse {
|
|
pub taglines: Vec<Tagline>,
|
|
}
|
|
|
|
#[skip_serializing_none]
|
|
#[derive(Debug, Serialize, Deserialize, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
|
#[cfg_attr(feature = "full", derive(TS))]
|
|
#[cfg_attr(feature = "full", ts(export))]
|
|
/// Fetches a list of registration applications.
|
|
pub struct ListTaglines {
|
|
pub page: Option<i64>,
|
|
pub limit: Option<i64>,
|
|
}
|