pub struct Wallet<'a> { /* private fields */ }Expand description
A wallet handle. All wallet-scoped operations go through this.
Implementations§
Source§impl<'a> Wallet<'a>
impl<'a> Wallet<'a>
Sourcepub async fn get(&self) -> Result<WalletResponse, LnBotError>
pub async fn get(&self) -> Result<WalletResponse, LnBotError>
Returns the wallet’s current state.
Sourcepub async fn update(
&self,
req: &UpdateWalletRequest,
) -> Result<WalletResponse, LnBotError>
pub async fn update( &self, req: &UpdateWalletRequest, ) -> Result<WalletResponse, LnBotError>
Updates the wallet.
Sourcepub fn key(&self) -> WalletKeyResource<'_>
pub fn key(&self) -> WalletKeyResource<'_>
Access wallet key operations.
Sourcepub fn invoices(&self) -> InvoicesResource<'_>
pub fn invoices(&self) -> InvoicesResource<'_>
Access invoice operations.
Sourcepub fn payments(&self) -> PaymentsResource<'_>
pub fn payments(&self) -> PaymentsResource<'_>
Access payment operations.
Sourcepub fn addresses(&self) -> AddressesResource<'_>
pub fn addresses(&self) -> AddressesResource<'_>
Access Lightning address operations.
Sourcepub fn transactions(&self) -> TransactionsResource<'_>
pub fn transactions(&self) -> TransactionsResource<'_>
Access transaction operations.
Sourcepub fn webhooks(&self) -> WebhooksResource<'_>
pub fn webhooks(&self) -> WebhooksResource<'_>
Access webhook operations.
Sourcepub fn events(&self) -> EventsResource<'_>
pub fn events(&self) -> EventsResource<'_>
Access the real-time wallet event stream.
Sourcepub fn l402(&self) -> L402Resource<'_>
pub fn l402(&self) -> L402Resource<'_>
Access L402 paywall operations.
Auto Trait Implementations§
impl<'a> Freeze for Wallet<'a>
impl<'a> !RefUnwindSafe for Wallet<'a>
impl<'a> Send for Wallet<'a>
impl<'a> Sync for Wallet<'a>
impl<'a> Unpin for Wallet<'a>
impl<'a> UnsafeUnpin for Wallet<'a>
impl<'a> !UnwindSafe for Wallet<'a>
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