radicle_source/person.rs
1// This file is part of radicle-surf
2// <https://github.com/radicle-dev/radicle-surf>
3//
4// Copyright (C) 2019-2020 The Radicle Team <dev@radicle.xyz>
5//
6// This program is free software: you can redistribute it and/or modify
7// it under the terms of the GNU General Public License version 3 or
8// later as published by the Free Software Foundation.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with this program. If not, see <https://www.gnu.org/licenses/>.
17
18use serde::Serialize;
19
20/// Representation of a person (e.g. committer, author, signer) from a
21/// repository. Usually extracted from a signature.
22#[derive(Clone, Debug, Serialize)]
23pub struct Person {
24 /// Name part of the commit signature.
25 pub name: String,
26 /// Email part of the commit signature.
27 pub email: String,
28}