Refactor InvoiceRequestContents fields into a sub-struct
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 10 Mar 2023 23:12:12 +0000 (17:12 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 20 Apr 2023 02:31:06 +0000 (21:31 -0500)
commite15044b8899863654f2659611b8f45703b656b32
treec103f90fa00744993302af4f7746a6d9ca1f293c
parentdd2ccd232234d93c482c333b20dc71d53c4b7247
Refactor InvoiceRequestContents fields into a sub-struct

InvoiceRequestBuilder has a field containing InvoiceRequestContents.
When deriving the payer_id from the remaining fields, a struct is needed
without payer_id as it not optional. Refactor InvoiceRequestContents to
have an inner struct without the payer_id such that
InvoiceRequestBuilder can use it instead.
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs