pub enum SendKind {
OnlineExact,
OnlineTolerance(Amount),
OfflineExact,
OfflineTolerance(Amount),
}
Expand description
Send Kind
Variants§
OnlineExact
Allow online swap before send if wallet does not have exact amount
OnlineTolerance(Amount)
Prefer offline send if difference is less then tolerance
OfflineExact
Wallet cannot do an online swap and selected proof must be exactly send amount
OfflineTolerance(Amount)
Wallet must remain offline but can over pay if below tolerance
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SendKind
impl<'de> Deserialize<'de> for SendKind
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
impl Copy for SendKind
impl Eq for SendKind
impl StructuralPartialEq for SendKind
Auto Trait Implementations§
impl Freeze for SendKind
impl RefUnwindSafe for SendKind
impl Send for SendKind
impl Sync for SendKind
impl Unpin for SendKind
impl UnwindSafe for SendKind
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