pub struct MeltRequest<Q> { /* private fields */ }
Expand description
Melt Bolt11 Request [NUT-05]
Implementations§
Source§impl<Q> MeltRequest<Q>
impl<Q> MeltRequest<Q>
Source§impl<Q> MeltRequest<Q>where
Q: Serialize + DeserializeOwned,
impl<Q> MeltRequest<Q>where
Q: Serialize + DeserializeOwned,
Sourcepub fn new(
quote: Q,
inputs: Vec<Proof>,
outputs: Option<Vec<BlindedMessage>>,
) -> MeltRequest<Q>
pub fn new( quote: Q, inputs: Vec<Proof>, outputs: Option<Vec<BlindedMessage>>, ) -> MeltRequest<Q>
Create new MeltRequest
Source§impl<Q> MeltRequest<Q>
impl<Q> MeltRequest<Q>
Sourcepub fn output_amount(&self) -> Option<Amount>
pub fn output_amount(&self) -> Option<Amount>
Total output Amount
Source§impl<Q> MeltRequest<Q>
impl<Q> MeltRequest<Q>
Trait Implementations§
Source§impl<Q> Clone for MeltRequest<Q>where
Q: Clone,
impl<Q> Clone for MeltRequest<Q>where
Q: Clone,
Source§fn clone(&self) -> MeltRequest<Q>
fn clone(&self) -> MeltRequest<Q>
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<Q> Debug for MeltRequest<Q>where
Q: Debug,
impl<Q> Debug for MeltRequest<Q>where
Q: Debug,
Source§impl<'de, Q> Deserialize<'de> for MeltRequest<Q>where
Q: Serialize + DeserializeOwned,
impl<'de, Q> Deserialize<'de> for MeltRequest<Q>where
Q: Serialize + DeserializeOwned,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MeltRequest<Q>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MeltRequest<Q>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Q> PartialEq for MeltRequest<Q>where
Q: PartialEq,
impl<Q> PartialEq for MeltRequest<Q>where
Q: PartialEq,
Source§impl<Q> Serialize for MeltRequest<Q>where
Q: Serialize + DeserializeOwned,
impl<Q> Serialize for MeltRequest<Q>where
Q: 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
Source§impl TryFrom<MeltRequest<String>> for MeltRequest<Uuid>
impl TryFrom<MeltRequest<String>> for MeltRequest<Uuid>
Source§fn try_from(
value: MeltRequest<String>,
) -> Result<MeltRequest<Uuid>, <MeltRequest<Uuid> as TryFrom<MeltRequest<String>>>::Error>
fn try_from( value: MeltRequest<String>, ) -> Result<MeltRequest<Uuid>, <MeltRequest<Uuid> as TryFrom<MeltRequest<String>>>::Error>
Performs the conversion.
impl<Q> Eq for MeltRequest<Q>where
Q: Eq,
impl<Q> StructuralPartialEq for MeltRequest<Q>
Auto Trait Implementations§
impl<Q> Freeze for MeltRequest<Q>where
Q: Freeze,
impl<Q> RefUnwindSafe for MeltRequest<Q>where
Q: RefUnwindSafe,
impl<Q> Send for MeltRequest<Q>where
Q: Send,
impl<Q> Sync for MeltRequest<Q>where
Q: Sync,
impl<Q> Unpin for MeltRequest<Q>where
Q: Unpin,
impl<Q> UnwindSafe for MeltRequest<Q>where
Q: 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