GitRoot
Craft your forge, Build your project, Grow your community freely
1// SPDX-FileCopyrightText: 2026 Romain Maneschi <romain@gitroot.dev>
2//
3// SPDX-License-Identifier: MIT
4
5use chrono::{Local, DateTime};
6use serde::{Deserialize, Serialize};
7
8#[derive(Debug, Deserialize, Serialize, Clone)]
9#[serde(rename_all = "camelCase")]
10pub struct Commit {
11 pub branch: String,
12 pub hash: String,
13 pub message: String,
14 pub date: DateTime<Local>,
15 pub committer_email: String,
16 pub committer_name: String,
17 pub parent_hash: String,
18 pub is_signed: bool,
19 pub is_valid_signature: bool,
20 pub signing_key: String,
21}
22