sort derivation
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending

This commit is contained in:
Mylloon 2023-11-01 12:43:07 +01:00
parent d025981f0e
commit 9bf1bc807c
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
5 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@ use std::{fs::File, io::Write, path::Path};
use crate::template::Template;
/// Store the configuration of config/config.toml
#[derive(Deserialize, Clone, Default, Debug)]
#[derive(Clone, Debug, Default, Deserialize)]
pub struct FileConfig {
/// http/https
pub scheme: Option<String>,

View file

@ -5,12 +5,12 @@ use serde::Deserialize;
use crate::misc::utils::get_reqwest_client;
#[derive(Deserialize, Debug)]
#[derive(Debug, Deserialize)]
struct GithubResponse {
items: Vec<GithubProject>,
}
#[derive(Deserialize, Debug)]
#[derive(Debug, Deserialize)]
struct GithubProject {
repository_url: String,
number: u32,
@ -19,7 +19,7 @@ struct GithubProject {
pull_request: GithubPullRequest,
}
#[derive(Deserialize, Debug)]
#[derive(Debug, Deserialize)]
struct GithubPullRequest {
html_url: String,
merged_at: Option<String>,

View file

@ -26,7 +26,7 @@ struct PortfolioTemplate {
closed: Option<Vec<Project>>,
}
#[derive(Content, Clone, Debug)]
#[derive(Clone, Content, Debug)]
struct Project {
name: String,
url: String,
@ -35,7 +35,7 @@ struct Project {
pulls_closed: Vec<Pull>,
}
#[derive(Content, Clone, Debug)]
#[derive(Clone, Content, Debug)]
struct Pull {
url: String,
id: u32,

View file

@ -30,7 +30,7 @@ struct CoursTemplate {
content: Option<File>,
}
#[derive(Serialize)]
#[derive(Debug, Serialize)]
struct FileNode {
name: String,
is_dir: bool,

View file

@ -14,7 +14,7 @@ pub struct Template {
}
/// Structure used by /routes/*.rs
#[derive(Default, Debug)]
#[derive(Debug, Default)]
pub struct Infos {
/// Title
pub page_title: Option<String>,