pub struct ShippingMethodSettings {
pub id: String,
pub label: String,
pub description: String,
pub settings_type: SettingsType,
pub value: String,
pub default_value: String,
pub tip: String,
pub placeholder: String,
pub options: Option<Value>,
}Fields§
§id: StringA unique identifier for the setting.
label: StringA human readable label for the setting used in interfaces.
description: StringA human readable description for the setting used in interfaces.
settings_type: SettingsTypeType of setting. Options: text, email, number, color, password, textarea, select, multiselect, radio, image_width and checkbox.
value: StringSetting value.
default_value: StringDefault value for the setting.
tip: StringAdditional help text shown to the user about the setting.
placeholder: StringPlaceholder text to be displayed in text inputs.
options: Option<Value>Trait Implementations§
source§impl Clone for ShippingMethodSettings
impl Clone for ShippingMethodSettings
source§fn clone(&self) -> ShippingMethodSettings
fn clone(&self) -> ShippingMethodSettings
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 ShippingMethodSettings
impl Debug for ShippingMethodSettings
source§impl<'de> Deserialize<'de> for ShippingMethodSettings
impl<'de> Deserialize<'de> for ShippingMethodSettings
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 ShippingMethodSettings
impl RefUnwindSafe for ShippingMethodSettings
impl Send for ShippingMethodSettings
impl Sync for ShippingMethodSettings
impl Unpin for ShippingMethodSettings
impl UnwindSafe for ShippingMethodSettings
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