pub struct TransferResult {
pub fee: f64,
pub sender_balance: f64,
pub receiver_balance: f64,
pub actual_credit: f64,
pub overflow: f64,
}Expand description
Result of an ATP transfer between two accounts.
Fields§
§fee: f64Fee charged (additive to sender, not deducted from amount)
sender_balance: f64Sender’s final available balance
receiver_balance: f64Receiver’s final available balance
actual_credit: f64Amount actually credited to receiver (may be < amount if capped)
overflow: f64Amount returned to sender if receiver hit max_balance cap
Trait Implementations§
Source§impl Clone for TransferResult
impl Clone for TransferResult
Source§impl Debug for TransferResult
impl Debug for TransferResult
Source§impl<'de> Deserialize<'de> for TransferResult
impl<'de> Deserialize<'de> for TransferResult
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
Auto Trait Implementations§
impl Freeze for TransferResult
impl RefUnwindSafe for TransferResult
impl Send for TransferResult
impl Sync for TransferResult
impl Unpin for TransferResult
impl UnsafeUnpin for TransferResult
impl UnwindSafe for TransferResult
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