pub struct UpdateProduct {
pub name: Option<String>,
pub slug: Option<String>,
pub description: Option<String>,
pub status: Option<ProductStatus>,
pub attributes: Option<Vec<ProductAttribute>>,
pub seo: Option<SeoMetadata>,
}Expand description
Input for updating a product
Fields§
§name: Option<String>§slug: Option<String>§description: Option<String>§status: Option<ProductStatus>§attributes: Option<Vec<ProductAttribute>>§seo: Option<SeoMetadata>Trait Implementations§
Source§impl Clone for UpdateProduct
impl Clone for UpdateProduct
Source§fn clone(&self) -> UpdateProduct
fn clone(&self) -> UpdateProduct
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 UpdateProduct
impl Debug for UpdateProduct
Source§impl Default for UpdateProduct
impl Default for UpdateProduct
Source§fn default() -> UpdateProduct
fn default() -> UpdateProduct
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateProduct
impl<'de> Deserialize<'de> for UpdateProduct
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateProduct, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateProduct, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UpdateProduct
impl Serialize for UpdateProduct
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for UpdateProduct
impl RefUnwindSafe for UpdateProduct
impl Send for UpdateProduct
impl Sync for UpdateProduct
impl Unpin for UpdateProduct
impl UnsafeUnpin for UpdateProduct
impl UnwindSafe for UpdateProduct
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