Nutomic
dc327652a5
* wip * stuff * fmt * fmt 2 * fmt 3 * fix default feature * use Authorization header * store ip and user agent for each login * add list_logins endpoint * serde(skip) for token * fix api tests * A few suggestions for login_token (#3991) * A few suggestions. * Fixing SQL format. * review * review * rename cookie --------- Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
41 lines
927 B
Rust
41 lines
927 B
Rust
#[cfg(feature = "full")]
|
|
pub mod build_response;
|
|
#[cfg(feature = "full")]
|
|
pub mod claims;
|
|
pub mod comment;
|
|
pub mod community;
|
|
#[cfg(feature = "full")]
|
|
pub mod context;
|
|
pub mod custom_emoji;
|
|
pub mod person;
|
|
pub mod post;
|
|
pub mod private_message;
|
|
#[cfg(feature = "full")]
|
|
pub mod request;
|
|
#[cfg(feature = "full")]
|
|
pub mod send_activity;
|
|
pub mod sensitive;
|
|
pub mod site;
|
|
#[cfg(feature = "full")]
|
|
pub mod utils;
|
|
|
|
pub extern crate lemmy_db_schema;
|
|
pub extern crate lemmy_db_views;
|
|
pub extern crate lemmy_db_views_actor;
|
|
pub extern crate lemmy_db_views_moderator;
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
#[cfg_attr(feature = "full", derive(ts_rs::TS))]
|
|
#[cfg_attr(feature = "full", ts(export))]
|
|
/// Saves settings for your user.
|
|
pub struct SuccessResponse {
|
|
pub success: bool,
|
|
}
|
|
|
|
impl Default for SuccessResponse {
|
|
fn default() -> Self {
|
|
SuccessResponse { success: true }
|
|
}
|
|
}
|