Struct nostr_sdk::nips::nip47::GetBalanceResponseResult
source · pub struct GetBalanceResponseResult {
pub balance: u64,
pub max_amount: Option<u64>,
pub budget_renewal: Option<BudgetType>,
}
Expand description
NIP47 Response Result
Fields§
§balance: u64
Balance amount in sats
max_amount: Option<u64>
Max amount payable within current budget
budget_renewal: Option<BudgetType>
Budget renewal type
Trait Implementations§
source§impl Clone for GetBalanceResponseResult
impl Clone for GetBalanceResponseResult
source§fn clone(&self) -> GetBalanceResponseResult
fn clone(&self) -> GetBalanceResponseResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GetBalanceResponseResult
impl Debug for GetBalanceResponseResult
source§impl<'de> Deserialize<'de> for GetBalanceResponseResult
impl<'de> Deserialize<'de> for GetBalanceResponseResult
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<GetBalanceResponseResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<GetBalanceResponseResult, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<GetBalanceResponseResult> for GetBalanceResponseResult
impl PartialEq<GetBalanceResponseResult> for GetBalanceResponseResult
source§fn eq(&self, other: &GetBalanceResponseResult) -> bool
fn eq(&self, other: &GetBalanceResponseResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GetBalanceResponseResult
impl Serialize for GetBalanceResponseResult
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for GetBalanceResponseResult
impl StructuralEq for GetBalanceResponseResult
impl StructuralPartialEq for GetBalanceResponseResult
Auto Trait Implementations§
impl RefUnwindSafe for GetBalanceResponseResult
impl Send for GetBalanceResponseResult
impl Sync for GetBalanceResponseResult
impl Unpin for GetBalanceResponseResult
impl UnwindSafe for GetBalanceResponseResult
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.