File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,20 @@ impl<'a> Message<'a> {
34
34
self
35
35
}
36
36
37
+ pub fn snippets ( mut self , slice : impl IntoIterator < Item = Snippet < ' a > > ) -> Self {
38
+ self . snippets . extend ( slice) ;
39
+ self
40
+ }
41
+
37
42
pub fn footer ( mut self , footer : Label < ' a > ) -> Self {
38
43
self . footer . push ( footer) ;
39
44
self
40
45
}
46
+
47
+ pub fn footers ( mut self , footer : impl IntoIterator < Item = Label < ' a > > ) -> Self {
48
+ self . footer . extend ( footer) ;
49
+ self
50
+ }
41
51
}
42
52
43
53
pub struct Label < ' a > {
@@ -116,6 +126,11 @@ impl<'a> Snippet<'a> {
116
126
self
117
127
}
118
128
129
+ pub fn annotations ( mut self , annotation : impl IntoIterator < Item = Annotation < ' a > > ) -> Self {
130
+ self . annotations . extend ( annotation) ;
131
+ self
132
+ }
133
+
119
134
pub fn fold ( mut self , fold : bool ) -> Self {
120
135
self . fold = fold;
121
136
self
You can’t perform that action at this time.
0 commit comments