pub enum RoutePath {
MintQuote(String),
Mint(String),
MeltQuote(String),
Melt(String),
Swap,
Checkstate,
Restore,
MintBlindAuth,
Ws,
}Expand description
Route path
Variants§
MintQuote(String)
Mint Quote for a specific payment method
Mint(String)
Mint for a specific payment method
MeltQuote(String)
Melt Quote for a specific payment method
Melt(String)
Melt for a specific payment method
Swap
Swap
Checkstate
Checkstate
Restore
Restore
MintBlindAuth
Mint Blind Auth
Ws
WebSocket
Implementations§
Source§impl RoutePath
impl RoutePath
Sourcepub fn static_paths() -> Vec<RoutePath>
pub fn static_paths() -> Vec<RoutePath>
Get all non-payment-method route paths These are routes that don’t depend on payment methods
Sourcepub fn common_payment_method_paths() -> Vec<RoutePath>
pub fn common_payment_method_paths() -> Vec<RoutePath>
Get all route paths for common payment methods (bolt11, bolt12) This is used for pattern matching in configuration
Sourcepub fn all_known_paths() -> Vec<RoutePath>
pub fn all_known_paths() -> Vec<RoutePath>
Get all paths for pattern matching (static + common payment methods)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RoutePath
impl<'de> Deserialize<'de> for RoutePath
Source§fn deserialize<D>(
deserializer: D,
) -> Result<RoutePath, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<RoutePath, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RoutePath
impl Serialize for RoutePath
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 RoutePath
impl StructuralPartialEq for RoutePath
Auto Trait Implementations§
impl Freeze for RoutePath
impl RefUnwindSafe for RoutePath
impl Send for RoutePath
impl Sync for RoutePath
impl Unpin for RoutePath
impl UnsafeUnpin for RoutePath
impl UnwindSafe for RoutePath
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