Sfoglia il codice sorgente

Add formatted body

master
Dylan Baker 6 anni fa
parent
commit
121cece0c5
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2
    0
      src/client.rs

+ 2
- 0
src/client.rs Vedi 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…
Annulla
Salva