Browse Source

Add formatted body

master
Dylan Baker 6 years ago
parent
commit
121cece0c5
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/client.rs

+ 2
- 0
src/client.rs View File

5
 pub struct OutgoingGist {
5
 pub struct OutgoingGist {
6
     pub title: String,
6
     pub title: String,
7
     pub body: String,
7
     pub body: String,
8
+    pub formatted_body: String,
8
     pub filetype: Option<String>,
9
     pub filetype: Option<String>,
9
 }
10
 }
10
 
11
 
25
     let gist = OutgoingGist {
26
     let gist = OutgoingGist {
26
         title: title.to_string(),
27
         title: title.to_string(),
27
         body: body.to_string(),
28
         body: body.to_string(),
29
+        formatted_body: String::from(""),
28
         filetype: filetype.map(|ft| ft.to_string()),
30
         filetype: filetype.map(|ft| ft.to_string()),
29
     };
31
     };
30
 
32
 

Loading…
Cancel
Save