mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-20 13:54:36 +01:00
doc: Update generated artifacts to match master
This commit is contained in:
parent
cb3ee0ac2e
commit
a80211e960
4 changed files with 10 additions and 8 deletions
|
@ -672,7 +672,9 @@
|
|||
"ListPays.pays[].destination": 3,
|
||||
"ListPays.pays[].erroronion": 10,
|
||||
"ListPays.pays[].label": 5,
|
||||
"ListPays.pays[].number_of_parts": 14,
|
||||
"ListPays.pays[].payment_hash": 1,
|
||||
"ListPays.pays[].preimage": 13,
|
||||
"ListPays.pays[].status": 2
|
||||
},
|
||||
"ListpaysRequest": {
|
||||
|
|
|
@ -1270,8 +1270,8 @@ message ListpaysPays {
|
|||
optional string bolt11 = 6;
|
||||
optional string description = 11;
|
||||
optional string bolt12 = 7;
|
||||
optional Amount amount_msat = 8;
|
||||
optional Amount amount_sent_msat = 9;
|
||||
optional bytes preimage = 13;
|
||||
optional uint64 number_of_parts = 14;
|
||||
optional bytes erroronion = 10;
|
||||
}
|
||||
|
||||
|
|
|
@ -931,8 +931,8 @@ impl From<&responses::ListpaysPays> for pb::ListpaysPays {
|
|||
bolt11: c.bolt11.clone(), // Rule #2 for type string?
|
||||
description: c.description.clone(), // Rule #2 for type string?
|
||||
bolt12: c.bolt12.clone(), // Rule #2 for type string?
|
||||
amount_msat: c.amount_msat.map(|f| f.into()), // Rule #2 for type msat?
|
||||
amount_sent_msat: c.amount_sent_msat.map(|f| f.into()), // Rule #2 for type msat?
|
||||
preimage: c.preimage.as_ref().map(|v| hex::decode(&v).unwrap()), // Rule #2 for type hex?
|
||||
number_of_parts: c.number_of_parts.clone(), // Rule #2 for type u64?
|
||||
erroronion: c.erroronion.as_ref().map(|v| hex::decode(&v).unwrap()), // Rule #2 for type hex?
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2739,10 +2739,10 @@ pub mod responses {
|
|||
pub description: Option<String>,
|
||||
#[serde(alias = "bolt12", skip_serializing_if = "Option::is_none")]
|
||||
pub bolt12: Option<String>,
|
||||
#[serde(alias = "amount_msat", skip_serializing_if = "Option::is_none")]
|
||||
pub amount_msat: Option<Amount>,
|
||||
#[serde(alias = "amount_sent_msat", skip_serializing_if = "Option::is_none")]
|
||||
pub amount_sent_msat: Option<Amount>,
|
||||
#[serde(alias = "preimage", skip_serializing_if = "Option::is_none")]
|
||||
pub preimage: Option<String>,
|
||||
#[serde(alias = "number_of_parts", skip_serializing_if = "Option::is_none")]
|
||||
pub number_of_parts: Option<u64>,
|
||||
#[serde(alias = "erroronion", skip_serializing_if = "Option::is_none")]
|
||||
pub erroronion: Option<String>,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue