pub struct Phoenixd { /* private fields */ }Expand description
Phoenixd
Implementations§
Source§impl Phoenixd
impl Phoenixd
Sourcepub async fn create_invoice(
&self,
invoice_request: InvoiceRequest,
) -> Result<InvoiceResponse>
pub async fn create_invoice( &self, invoice_request: InvoiceRequest, ) -> Result<InvoiceResponse>
Create Invoice
Sourcepub async fn get_incoming_invoice(
&self,
payment_hash: &str,
) -> Result<GetIncomingInvoiceResponse>
pub async fn get_incoming_invoice( &self, payment_hash: &str, ) -> Result<GetIncomingInvoiceResponse>
Find incoming invoice
Source§impl Phoenixd
impl Phoenixd
Sourcepub async fn pay_bolt11_invoice(
&self,
invoice: &str,
amount_sat: Option<u64>,
) -> Result<PayInvoiceResponse>
pub async fn pay_bolt11_invoice( &self, invoice: &str, amount_sat: Option<u64>, ) -> Result<PayInvoiceResponse>
PayInvoice
Sourcepub async fn pay_bolt12_offer(
&self,
offer: String,
amount_sat: u64,
message: Option<String>,
) -> Result<PayInvoiceResponse>
pub async fn pay_bolt12_offer( &self, offer: String, amount_sat: u64, message: Option<String>, ) -> Result<PayInvoiceResponse>
Pay offer
Sourcepub async fn get_outgoing_invoice(
&self,
payment_hash: &str,
) -> Result<GetOutgoingInvoiceResponse, Error>
pub async fn get_outgoing_invoice( &self, payment_hash: &str, ) -> Result<GetOutgoingInvoiceResponse, Error>
Find outgoing invoice
Source§impl Phoenixd
impl Phoenixd
Sourcepub async fn create_invoice_webhook_router(
&self,
webhook_endpoint: &str,
sender: Sender<WebhookResponse>,
) -> Result<Router>
pub async fn create_invoice_webhook_router( &self, webhook_endpoint: &str, sender: Sender<WebhookResponse>, ) -> Result<Router>
Create router for webhook
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Phoenixd
impl !RefUnwindSafe for Phoenixd
impl Send for Phoenixd
impl Sync for Phoenixd
impl Unpin for Phoenixd
impl !UnwindSafe for Phoenixd
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more