pub enum WsCommand {
Bolt11MintQuote,
Bolt11MeltQuote,
Bolt12MintQuote,
Bolt12MeltQuote,
ProofState,
}
Expand description
WebSocket commands supported by the Cashu mint
Variants§
Bolt11MintQuote
Command to request a Lightning invoice for minting tokens
Bolt11MeltQuote
Command to request a Lightning payment for melting tokens
Bolt12MintQuote
Websocket support for Bolt12 Mint Quote
Bolt12MeltQuote
Websocket support for Bolt12 Melt Quote
ProofState
Command to check the state of a proof
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WsCommand
impl<'de> Deserialize<'de> for WsCommand
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WsCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WsCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for WsCommand
impl Serialize for WsCommand
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 Copy for WsCommand
impl Eq for WsCommand
impl StructuralPartialEq for WsCommand
Auto Trait Implementations§
impl Freeze for WsCommand
impl RefUnwindSafe for WsCommand
impl Send for WsCommand
impl Sync for WsCommand
impl Unpin for WsCommand
impl UnwindSafe for WsCommand
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