@@ -28,9 +28,13 @@ pub mod signature;
28
28
#[ derive( Default , PartialEq , Eq , Debug , Hash , Ord , PartialOrd , Clone ) ]
29
29
#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
30
30
pub struct Identity {
31
- /// The actors name.
31
+ /// The actors name, potentially with whitespace as parsed.
32
+ ///
33
+ /// Use [IdentityRef::trim()] or trim manually to be able to clean it up.
32
34
pub name : BString ,
33
- /// The actor's email.
35
+ /// The actor's email, potentially with whitespace as parsed.
36
+ ///
37
+ /// Use [IdentityRef::trim()] or trim manually to be able to clean it up.
34
38
pub email : BString ,
35
39
}
36
40
@@ -51,9 +55,13 @@ pub struct IdentityRef<'a> {
51
55
#[ derive( Default , PartialEq , Eq , Debug , Hash , Ord , PartialOrd , Clone ) ]
52
56
#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
53
57
pub struct Signature {
54
- /// The actors name.
58
+ /// The actors name, potentially with whitespace as parsed.
59
+ ///
60
+ /// Use [SignatureRef::trim()] or trim manually to be able to clean it up.
55
61
pub name : BString ,
56
- /// The actor's email.
62
+ /// The actor's email, potentially with whitespace as parsed.
63
+ ///
64
+ /// Use [SignatureRef::trim()] or trim manually to be able to clean it up.
57
65
pub email : BString ,
58
66
/// The time stamp at which the signature is performed.
59
67
pub time : Time ,
@@ -65,10 +73,14 @@ pub struct Signature {
65
73
#[ derive( Default , PartialEq , Eq , Debug , Hash , Ord , PartialOrd , Clone , Copy ) ]
66
74
#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
67
75
pub struct SignatureRef < ' a > {
68
- /// The actor's name.
76
+ /// The actors name, potentially with whitespace as parsed.
77
+ ///
78
+ /// Use [SignatureRef::trim()] or trim manually to be able to clean it up.
69
79
#[ cfg_attr( feature = "serde" , serde( borrow) ) ]
70
80
pub name : & ' a BStr ,
71
- /// The actor's email.
81
+ /// The actor's email, potentially with whitespace as parsed.
82
+ ///
83
+ /// Use [SignatureRef::trim()] or trim manually to be able to clean it up.
72
84
pub email : & ' a BStr ,
73
85
/// The time stamp at which the signature was performed.
74
86
pub time : gix_date:: Time ,
0 commit comments