18 lines
507 B
Rust
18 lines
507 B
Rust
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
use sqlx::FromRow;
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, FromRow)]
|
|
pub struct UserPrivacyModel {
|
|
pub user: Uuid,
|
|
pub profile_visibility: String,
|
|
pub email_visibility: String,
|
|
pub activity_visibility: String,
|
|
pub allow_search_indexing: bool,
|
|
pub allow_direct_messages: bool,
|
|
pub show_online_status: bool,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
}
|