Browse Source

Add formatted body

master
Dylan Baker 5 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,6 +5,7 @@ use serde::{Deserialize, Serialize};
5 5
 pub struct OutgoingGist {
6 6
     pub title: String,
7 7
     pub body: String,
8
+    pub formatted_body: String,
8 9
     pub filetype: Option<String>,
9 10
 }
10 11
 
@@ -25,6 +26,7 @@ pub fn create_gist(
25 26
     let gist = OutgoingGist {
26 27
         title: title.to_string(),
27 28
         body: body.to_string(),
29
+        formatted_body: String::from(""),
28 30
         filetype: filetype.map(|ft| ft.to_string()),
29 31
     };
30 32
 

Loading…
Cancel
Save