pub struct ProductVariantOutput {
pub id: String,
pub product_id: String,
pub sku: String,
pub name: String,
pub price: f64,
pub compare_at_price: Option<f64>,
pub is_default: bool,
}Fields§
§id: String§product_id: String§sku: String§name: String§price: f64§compare_at_price: Option<f64>§is_default: boolTrait Implementations§
Source§impl Clone for ProductVariantOutput
impl Clone for ProductVariantOutput
Source§fn clone(&self) -> ProductVariantOutput
fn clone(&self) -> ProductVariantOutput
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 ProductVariantOutput
impl<'de> Deserialize<'de> for ProductVariantOutput
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<ProductVariant> for ProductVariantOutput
impl From<ProductVariant> for ProductVariantOutput
Source§fn from(v: ProductVariant) -> Self
fn from(v: ProductVariant) -> Self
Converts to this type from the input type.
Source§impl FromNapiValue for ProductVariantOutput
impl FromNapiValue for ProductVariantOutput
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 ProductVariantOutput
impl Serialize for ProductVariantOutput
Source§impl ToNapiValue for ProductVariantOutput
impl ToNapiValue for ProductVariantOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: ProductVariantOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: ProductVariantOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for ProductVariantOutput
impl TypeName for ProductVariantOutput
Source§impl ValidateNapiValue for ProductVariantOutput
impl ValidateNapiValue for ProductVariantOutput
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 ProductVariantOutput
impl RefUnwindSafe for ProductVariantOutput
impl Send for ProductVariantOutput
impl Sync for ProductVariantOutput
impl Unpin for ProductVariantOutput
impl UnsafeUnpin for ProductVariantOutput
impl UnwindSafe for ProductVariantOutput
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