pub struct SupportedMethods {
pub method: PaymentMethod,
pub unit: CurrencyUnit,
pub commands: Vec<WsCommand>,
}
Expand description
Supported WS Methods
Fields§
§method: PaymentMethod
Payment Method
unit: CurrencyUnit
Unit
commands: Vec<WsCommand>
Command
Implementations§
Source§impl SupportedMethods
impl SupportedMethods
Sourcepub fn new(
method: PaymentMethod,
unit: CurrencyUnit,
commands: Vec<WsCommand>,
) -> SupportedMethods
pub fn new( method: PaymentMethod, unit: CurrencyUnit, commands: Vec<WsCommand>, ) -> SupportedMethods
Create SupportedMethods
Sourcepub fn default_bolt11(unit: CurrencyUnit) -> SupportedMethods
pub fn default_bolt11(unit: CurrencyUnit) -> SupportedMethods
Create SupportedMethods
for Bolt11 with all supported commands
Trait Implementations§
Source§impl Clone for SupportedMethods
impl Clone for SupportedMethods
Source§fn clone(&self) -> SupportedMethods
fn clone(&self) -> SupportedMethods
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SupportedMethods
impl Debug for SupportedMethods
Source§impl<'de> Deserialize<'de> for SupportedMethods
impl<'de> Deserialize<'de> for SupportedMethods
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SupportedMethods, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SupportedMethods, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SupportedMethods
impl Hash for SupportedMethods
Source§impl PartialEq for SupportedMethods
impl PartialEq for SupportedMethods
Source§impl Serialize for SupportedMethods
impl Serialize for SupportedMethods
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 SupportedMethods
impl StructuralPartialEq for SupportedMethods
Auto Trait Implementations§
impl Freeze for SupportedMethods
impl RefUnwindSafe for SupportedMethods
impl Send for SupportedMethods
impl Sync for SupportedMethods
impl Unpin for SupportedMethods
impl UnwindSafe for SupportedMethods
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