pub struct StoreCurrencySettingsInput {
pub base_currency: String,
pub enabled_currencies: Vec<String>,
pub auto_convert: Option<bool>,
pub rounding_mode: Option<String>,
}Fields§
§base_currency: StringBase currency for the store
enabled_currencies: Vec<String>List of enabled currency codes
auto_convert: Option<bool>Whether to auto-convert prices
rounding_mode: Option<String>Rounding mode: “half_up”, “half_down”, “up”, “down”, “half_even”
Trait Implementations§
Source§impl Clone for StoreCurrencySettingsInput
impl Clone for StoreCurrencySettingsInput
Source§fn clone(&self) -> StoreCurrencySettingsInput
fn clone(&self) -> StoreCurrencySettingsInput
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 StoreCurrencySettingsInput
impl<'de> Deserialize<'de> for StoreCurrencySettingsInput
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 StoreCurrencySettingsInput
impl FromNapiValue for StoreCurrencySettingsInput
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 ToNapiValue for StoreCurrencySettingsInput
impl ToNapiValue for StoreCurrencySettingsInput
Source§unsafe fn to_napi_value(
env: napi_env,
val: StoreCurrencySettingsInput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: StoreCurrencySettingsInput, ) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for StoreCurrencySettingsInput
impl ValidateNapiValue for StoreCurrencySettingsInput
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 StoreCurrencySettingsInput
impl RefUnwindSafe for StoreCurrencySettingsInput
impl Send for StoreCurrencySettingsInput
impl Sync for StoreCurrencySettingsInput
impl Unpin for StoreCurrencySettingsInput
impl UnsafeUnpin for StoreCurrencySettingsInput
impl UnwindSafe for StoreCurrencySettingsInput
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