forked from mirrors/kingfisher
removed serde_utils and added Authress rule
This commit is contained in:
parent
695b051e24
commit
6fb119d501
11 changed files with 901 additions and 193 deletions
|
|
@ -1,10 +1,7 @@
|
|||
use bstr::BString;
|
||||
use gix::{date::Time, ObjectId};
|
||||
use schemars::JsonSchema;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::serde_utils::BStringLossyUtf8;
|
||||
|
||||
#[repr(transparent)]
|
||||
#[derive(Serialize, Deserialize, Copy, Clone)]
|
||||
#[serde(remote = "Time")]
|
||||
|
|
@ -133,11 +130,9 @@ pub struct CommitMetadata {
|
|||
#[serde(with = "HexObjectId")]
|
||||
pub commit_id: ObjectId,
|
||||
|
||||
#[serde(with = "BStringLossyUtf8")]
|
||||
pub committer_name: BString,
|
||||
pub committer_name: String,
|
||||
|
||||
#[serde(with = "BStringLossyUtf8")]
|
||||
pub committer_email: BString,
|
||||
pub committer_email: String,
|
||||
|
||||
#[serde(with = "TextTime")]
|
||||
pub committer_timestamp: Time,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue