blob: 2105040b32c8db81d7560752bd9d059ce9aa0b5a (
plain) (
tree)
|
|
#[macro_use]
mod actix_ructe;
pub mod db;
mod error;
mod notification;
pub mod routes;
mod users;
type Result<T> = std::result::Result<T, crate::error::PinussyError>;
#[derive(Clone)]
pub struct Pinussy {
pub db: db::Database,
}
#[derive(sqlx::Type)]
#[sqlx(type_name = "privacy", rename_all = "lowercase")]
pub enum Privacy {
Private,
Unlisted,
Public,
}
include!(concat!(env!("OUT_DIR"), "/templates.rs"));
|