소스 검색

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
 

Loading…
취소
저장