pub struct Swap {
pub id: String,
pub from_currency: String,
pub to_currency: String,
pub from_amount: f64,
pub to_amount: f64,
pub rate: f64,
pub status: String,
pub tx_hash: String,
pub created_at: String,
}Fields§
§id: String§from_currency: String§to_currency: String§from_amount: f64§to_amount: f64§rate: f64§status: String§tx_hash: String§created_at: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Swap
impl<'de> Deserialize<'de> for Swap
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 Swap
impl RefUnwindSafe for Swap
impl Send for Swap
impl Sync for Swap
impl Unpin for Swap
impl UnsafeUnpin for Swap
impl UnwindSafe for Swap
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