pub struct AmountResponse {Show 14 fields
pub partner: String,
pub from_amount: f64,
pub to_amount: f64,
pub from_currency: String,
pub from_network: String,
pub to_currency: String,
pub to_network: String,
pub support_rate: u32,
pub duration: String,
pub fixed: bool,
pub min: f64,
pub max: f64,
pub exists: bool,
pub id: String,
}
Fields§
§partner: String
§from_amount: f64
§to_amount: f64
§from_currency: String
§from_network: String
§to_currency: String
§to_network: String
§support_rate: u32
§duration: String
§fixed: bool
§min: f64
§max: f64
§exists: bool
§id: String
Trait Implementations§
Source§impl Clone for AmountResponse
impl Clone for AmountResponse
Source§fn clone(&self) -> AmountResponse
fn clone(&self) -> AmountResponse
Returns a copy 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 AmountResponse
impl Debug for AmountResponse
Source§impl<'de> Deserialize<'de> for AmountResponse
impl<'de> Deserialize<'de> for AmountResponse
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 From<AmountResponse> for GetAmounts
impl From<AmountResponse> for GetAmounts
Source§fn from(amount: AmountResponse) -> Self
fn from(amount: AmountResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AmountResponse
impl PartialEq for AmountResponse
impl StructuralPartialEq for AmountResponse
Auto Trait Implementations§
impl Freeze for AmountResponse
impl RefUnwindSafe for AmountResponse
impl Send for AmountResponse
impl Sync for AmountResponse
impl Unpin for AmountResponse
impl UnwindSafe for AmountResponse
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