@@ -25,22 +25,24 @@ impl<'a> Entry<'a> {
25
25
/// Constructors indicating what kind of mapping is created.
26
26
///
27
27
/// Only these combinations of values are valid.
28
- #[ allow( missing_docs) ]
29
28
impl < ' a > Entry < ' a > {
29
+ /// An entry that changes the name by an email.
30
30
pub fn change_name_by_email ( proper_name : impl Into < & ' a BStr > , commit_email : impl Into < & ' a BStr > ) -> Self {
31
31
Entry {
32
32
new_name : Some ( proper_name. into ( ) ) ,
33
33
old_email : commit_email. into ( ) ,
34
34
..Default :: default ( )
35
35
}
36
36
}
37
+ /// An entry that changes the email by an email.
37
38
pub fn change_email_by_email ( proper_email : impl Into < & ' a BStr > , commit_email : impl Into < & ' a BStr > ) -> Self {
38
39
Entry {
39
40
new_email : Some ( proper_email. into ( ) ) ,
40
41
old_email : commit_email. into ( ) ,
41
42
..Default :: default ( )
42
43
}
43
44
}
45
+ /// An entry that changes the email by a name and email.
44
46
pub fn change_email_by_name_and_email (
45
47
proper_email : impl Into < & ' a BStr > ,
46
48
commit_name : impl Into < & ' a BStr > ,
@@ -53,6 +55,7 @@ impl<'a> Entry<'a> {
53
55
..Default :: default ( )
54
56
}
55
57
}
58
+ /// An entry that changes a name and the email by an email.
56
59
pub fn change_name_and_email_by_email (
57
60
proper_name : impl Into < & ' a BStr > ,
58
61
proper_email : impl Into < & ' a BStr > ,
@@ -65,7 +68,7 @@ impl<'a> Entry<'a> {
65
68
..Default :: default ( )
66
69
}
67
70
}
68
-
71
+ /// An entry that changes a name and email by a name and email.
69
72
pub fn change_name_and_email_by_name_and_email (
70
73
proper_name : impl Into < & ' a BStr > ,
71
74
proper_email : impl Into < & ' a BStr > ,
0 commit comments