Skip to content

Commit 94f2d59

Browse files
authored
Merge pull request #10 from wandercn/fix_skip_key
skip key
2 parents b4e8f5b + 0f64e0e commit 94f2d59

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ Cargo.lock
1616
/Cargo.lock
1717
.idea/workspace.xml
1818
.idea/vcs.xml
19+
cjlintignore.cfg
20+
.DS_Store

src/request.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ pub trait Requester {
2929
#[derive(Debug, Default, Serialize, Deserialize)]
3030
pub struct Request {
3131
// 是否必填 最大长度 描述 示例值
32+
#[serde(skip_serializing)]
3233
private_key: String, //`json:"-"` // rsa私钥单行文本字符串
33-
public_key: String, //`json:"-"` // rsa公钥单行文本字符串
34+
#[serde(skip_serializing)]
35+
public_key: String, //`json:"-"` // rsa公钥单行文本字符串
3436
app_cert_sn: String, //`json:"app_cert_sn"` // 应用公钥证书 SN
3537
alipay_root_cert_sn: String, //`json:"alipay_root_cert_sn"` // 支付宝根证书 SN
3638
app_id: String, //`json:"app_id"` // 是 32 支付宝分配给开发者的应用ID 2014072300007148

0 commit comments

Comments
 (0)