pub enum AmountOrAny {
Amount(Amount),
Any,
}Expand description
An Amount that can also be any. Useful for cases in which you
want to delegate the Amount selection so someone else, e.g., an
amountless invoice.
Variants§
Trait Implementations§
Source§impl Clone for AmountOrAny
impl Clone for AmountOrAny
Source§fn clone(&self) -> AmountOrAny
fn clone(&self) -> AmountOrAny
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 Debug for AmountOrAny
impl Debug for AmountOrAny
Source§impl<'de> Deserialize<'de> for AmountOrAny
impl<'de> Deserialize<'de> for AmountOrAny
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AmountOrAny
impl PartialEq for AmountOrAny
Source§impl Serialize for AmountOrAny
impl Serialize for AmountOrAny
impl Copy for AmountOrAny
impl StructuralPartialEq for AmountOrAny
Auto Trait Implementations§
impl Freeze for AmountOrAny
impl RefUnwindSafe for AmountOrAny
impl Send for AmountOrAny
impl Sync for AmountOrAny
impl Unpin for AmountOrAny
impl UnwindSafe for AmountOrAny
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