Переглянути джерело

Add formatted body

master
Dylan Baker 6 роки тому
джерело
коміт
121cece0c5
1 змінених файлів з 2 додано та 0 видалено
  1. 2
    0
      src/client.rs

+ 2
- 0
src/client.rs Переглянути файл

@@ -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
 

Завантаження…
Відмінити
Зберегти