backend/model/enum/
privacy_option.rsuse diesel_derive_enum::DbEnum;
use serde::{Deserialize, Serialize};
use typeshare::typeshare;
use utoipa::ToSchema;
#[typeshare]
#[derive(Serialize, Deserialize, DbEnum, Debug, ToSchema, Clone)]
#[ExistingTypePath = "crate::schema::sql_types::PrivacyOption"]
pub enum PrivacyOption {
#[serde(rename = "private")]
#[db_rename = "private"]
Private,
#[serde(rename = "protected")]
#[db_rename = "protected"]
Protected,
#[serde(rename = "public")]
#[db_rename = "public"]
Public,
}