pub struct SetExchangeRateInput {
pub base_currency: String,
pub quote_currency: String,
pub rate: f64,
pub source: Option<String>,
}Fields§
§base_currency: StringBase currency code (e.g., “USD”)
quote_currency: StringQuote currency code (e.g., “EUR”)
rate: f64Exchange rate (e.g., 0.92 for USD to EUR)
source: Option<String>Optional source of the rate (e.g., “manual”, “api”)
Trait Implementations§
Source§impl Clone for SetExchangeRateInput
impl Clone for SetExchangeRateInput
Source§fn clone(&self) -> SetExchangeRateInput
fn clone(&self) -> SetExchangeRateInput
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<'de> Deserialize<'de> for SetExchangeRateInput
impl<'de> Deserialize<'de> for SetExchangeRateInput
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 FromNapiValue for SetExchangeRateInput
impl FromNapiValue for SetExchangeRateInput
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl Serialize for SetExchangeRateInput
impl Serialize for SetExchangeRateInput
Source§impl ToNapiValue for SetExchangeRateInput
impl ToNapiValue for SetExchangeRateInput
Source§unsafe fn to_napi_value(
env: napi_env,
val: SetExchangeRateInput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: SetExchangeRateInput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for SetExchangeRateInput
impl TypeName for SetExchangeRateInput
Source§impl ValidateNapiValue for SetExchangeRateInput
impl ValidateNapiValue for SetExchangeRateInput
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for SetExchangeRateInput
impl RefUnwindSafe for SetExchangeRateInput
impl Send for SetExchangeRateInput
impl Sync for SetExchangeRateInput
impl Unpin for SetExchangeRateInput
impl UnsafeUnpin for SetExchangeRateInput
impl UnwindSafe for SetExchangeRateInput
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