This commit is contained in:
parent
d025981f0e
commit
9bf1bc807c
5 changed files with 8 additions and 8 deletions
|
@ -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>,
|
||||
|
|
|
@ -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>,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -30,7 +30,7 @@ struct CoursTemplate {
|
|||
content: Option<File>,
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[derive(Debug, Serialize)]
|
||||
struct FileNode {
|
||||
name: String,
|
||||
is_dir: bool,
|
||||
|
|
|
@ -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>,
|
||||
|
|
Loading…
Reference in a new issue