We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Invoice.with_payment_method
1 parent 51a00f4 commit b7a6e88Copy full SHA for b7a6e88
1 file changed
src/invoice.rs
@@ -66,7 +66,7 @@ impl<'a> Invoice<'a> {
66
self
67
}
68
69
- pub fn with_payment_method(&mut self, payment_method: PaymentMethod<'a>) -> &Self {
+ pub fn with_payment_method(mut self, payment_method: PaymentMethod<'a>) -> Self {
70
self.payment_method = Some(payment_method);
71
72
0 commit comments