pub struct ConvertResponse {
pub success: bool,
pub from: String,
pub to: String,
pub amount: f64,
pub result: f64,
pub rate: f64,
}Expand description
Response from the /v1/convert endpoint.
Fields§
§success: boolWhether the request was successful.
from: StringSource currency code.
to: StringTarget currency code.
amount: f64Amount that was converted.
result: f64Converted result.
rate: f64The exchange rate applied.
Trait Implementations§
Source§impl Clone for ConvertResponse
impl Clone for ConvertResponse
Source§fn clone(&self) -> ConvertResponse
fn clone(&self) -> ConvertResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConvertResponse
impl Debug for ConvertResponse
Source§impl<'de> Deserialize<'de> for ConvertResponse
impl<'de> Deserialize<'de> for ConvertResponse
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 ConvertResponse
impl RefUnwindSafe for ConvertResponse
impl Send for ConvertResponse
impl Sync for ConvertResponse
impl Unpin for ConvertResponse
impl UnsafeUnpin for ConvertResponse
impl UnwindSafe for ConvertResponse
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