git_cliff_core/
contributor.rs1use serde::{
2 Deserialize,
3 Serialize,
4};
5use std::hash::{
6 Hash,
7 Hasher,
8};
9
10#[derive(Debug, Default, Clone, Eq, PartialEq, Deserialize, Serialize)]
12pub struct RemoteContributor {
13 pub username: Option<String>,
15 pub pr_title: Option<String>,
17 pub pr_number: Option<i64>,
19 pub pr_labels: Vec<String>,
21 pub is_first_time: bool,
23}
24
25impl Hash for RemoteContributor {
26 fn hash<H: Hasher>(&self, state: &mut H) {
27 self.username.hash(state);
28 }
29}