pub enum NotificationPayload<T> {
ProofState(ProofState),
MeltQuoteBolt11Response(MeltQuoteBolt11Response<T>),
MintQuoteBolt11Response(MintQuoteBolt11Response<T>),
MintQuoteBolt12Response(MintQuoteBolt12Response<T>),
}
Expand description
Subscription response
Variants§
ProofState(ProofState)
Proof State
MeltQuoteBolt11Response(MeltQuoteBolt11Response<T>)
Melt Quote Bolt11 Response
MintQuoteBolt11Response(MintQuoteBolt11Response<T>)
Mint Quote Bolt11 Response
MintQuoteBolt12Response(MintQuoteBolt12Response<T>)
Mint Quote Bolt12 Response
Trait Implementations§
Source§impl<T> Clone for NotificationPayload<T>where
T: Clone,
impl<T> Clone for NotificationPayload<T>where
T: Clone,
Source§fn clone(&self) -> NotificationPayload<T>
fn clone(&self) -> NotificationPayload<T>
Returns a duplicate 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<T> Debug for NotificationPayload<T>where
T: Debug,
impl<T> Debug for NotificationPayload<T>where
T: Debug,
Source§impl<'de, T> Deserialize<'de> for NotificationPayload<T>where
T: Serialize + DeserializeOwned,
impl<'de, T> Deserialize<'de> for NotificationPayload<T>where
T: Serialize + DeserializeOwned,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationPayload<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationPayload<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> From<MeltQuoteBolt11Response<T>> for NotificationPayload<T>
impl<T> From<MeltQuoteBolt11Response<T>> for NotificationPayload<T>
Source§fn from(melt_quote: MeltQuoteBolt11Response<T>) -> NotificationPayload<T>
fn from(melt_quote: MeltQuoteBolt11Response<T>) -> NotificationPayload<T>
Converts to this type from the input type.
Source§impl<T> From<MintQuoteBolt11Response<T>> for NotificationPayload<T>
impl<T> From<MintQuoteBolt11Response<T>> for NotificationPayload<T>
Source§fn from(mint_quote: MintQuoteBolt11Response<T>) -> NotificationPayload<T>
fn from(mint_quote: MintQuoteBolt11Response<T>) -> NotificationPayload<T>
Converts to this type from the input type.
Source§impl<T> From<MintQuoteBolt12Response<T>> for NotificationPayload<T>
impl<T> From<MintQuoteBolt12Response<T>> for NotificationPayload<T>
Source§fn from(mint_quote: MintQuoteBolt12Response<T>) -> NotificationPayload<T>
fn from(mint_quote: MintQuoteBolt12Response<T>) -> NotificationPayload<T>
Converts to this type from the input type.
Source§impl<T> From<ProofState> for NotificationPayload<T>
impl<T> From<ProofState> for NotificationPayload<T>
Source§fn from(proof_state: ProofState) -> NotificationPayload<T>
fn from(proof_state: ProofState) -> NotificationPayload<T>
Converts to this type from the input type.
Source§impl Indexable for NotificationPayload<Uuid>
impl Indexable for NotificationPayload<Uuid>
Source§type Type = Notification
type Type = Notification
The type of the index, it is unknown and it is up to the Manager’s
generic type
Source§impl<T> PartialEq for NotificationPayload<T>where
T: PartialEq,
impl<T> PartialEq for NotificationPayload<T>where
T: PartialEq,
Source§impl<T> Serialize for NotificationPayload<T>where
T: Serialize + DeserializeOwned,
impl<T> Serialize for NotificationPayload<T>where
T: Serialize + DeserializeOwned,
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<T> Eq for NotificationPayload<T>where
T: Eq,
impl<T> StructuralPartialEq for NotificationPayload<T>
Auto Trait Implementations§
impl<T> Freeze for NotificationPayload<T>where
T: Freeze,
impl<T> RefUnwindSafe for NotificationPayload<T>where
T: RefUnwindSafe,
impl<T> Send for NotificationPayload<T>where
T: Send,
impl<T> Sync for NotificationPayload<T>where
T: Sync,
impl<T> Unpin for NotificationPayload<T>where
T: Unpin,
impl<T> UnwindSafe for NotificationPayload<T>where
T: UnwindSafe,
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