pub struct SwapParams {
pub from_currency: String,
pub to_currency: String,
pub amount: f64,
}Fields§
§from_currency: String§to_currency: String§amount: f64Trait Implementations§
Source§impl Clone for SwapParams
impl Clone for SwapParams
Source§fn clone(&self) -> SwapParams
fn clone(&self) -> SwapParams
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 SwapParams
impl Debug for SwapParams
Source§impl Default for SwapParams
impl Default for SwapParams
Source§fn default() -> SwapParams
fn default() -> SwapParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SwapParams
impl RefUnwindSafe for SwapParams
impl Send for SwapParams
impl Sync for SwapParams
impl Unpin for SwapParams
impl UnsafeUnpin for SwapParams
impl UnwindSafe for SwapParams
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