documentation

This commit is contained in:
Mylloon 2024-01-24 12:10:50 +01:00
parent cb67c85040
commit fbde0a07c6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 3 additions and 0 deletions

View file

@ -1,6 +1,7 @@
use actix_web::{get, HttpResponse, Responder}; use actix_web::{get, HttpResponse, Responder};
use serde::Serialize; use serde::Serialize;
/// Response
#[derive(Serialize)] #[derive(Serialize)]
struct Info { struct Info {
unix_epoch: u32, unix_epoch: u32,

View file

@ -30,6 +30,7 @@ async fn page(config: web::Data<Config>) -> impl Responder {
Html(build_page(config.get_ref().to_owned())) Html(build_page(config.get_ref().to_owned()))
} }
/// Contact node
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
struct ContactLink { struct ContactLink {
service: String, service: String,

View file

@ -24,6 +24,7 @@ pub struct Infos {
pub page_kw: Option<String>, pub page_kw: Option<String>,
} }
/// Information on what page the user is currently
#[derive(Content, Debug, Default)] #[derive(Content, Debug, Default)]
pub struct NavBar { pub struct NavBar {
pub index: bool, pub index: bool,