pub struct ProductAttribute {
    pub id: i32,
    pub name: String,
    pub position: i32,
    pub visible: bool,
    pub variation: bool,
    pub options: Vec<String>,
}Fields§
§id: i32Attribute ID.
name: StringAttribute name.
position: i32Attribute position.
visible: boolDefine if the attribute is visible on the “Additional information” tab in the product’s page. Default is false.
variation: boolDefine if the attribute can be used as variation. Default is false.
options: Vec<String>List of available term names of the attribute.
Trait Implementations§
Source§impl Clone for ProductAttribute
 
impl Clone for ProductAttribute
Source§fn clone(&self) -> ProductAttribute
 
fn clone(&self) -> ProductAttribute
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 Debug for ProductAttribute
 
impl Debug for ProductAttribute
Source§impl<'de> Deserialize<'de> for ProductAttribute
 
impl<'de> Deserialize<'de> for ProductAttribute
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 ProductAttribute
impl RefUnwindSafe for ProductAttribute
impl Send for ProductAttribute
impl Sync for ProductAttribute
impl Unpin for ProductAttribute
impl UnwindSafe for ProductAttribute
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