Struct ehelply::models::product_base::ProductBase
source · pub struct ProductBase {
pub meta_data: Option<Value>,
pub collection_uuid: Option<String>,
pub review_group_uuid: Option<String>,
pub addons: Option<Vec<String>>,
pub name: Option<String>,
pub price: i32,
pub quantity_for_public: i32,
}
Fields
meta_data: Option<Value>
collection_uuid: Option<String>
review_group_uuid: Option<String>
addons: Option<Vec<String>>
name: Option<String>
price: i32
quantity_for_public: i32
Implementations
sourceimpl ProductBase
impl ProductBase
pub fn new(price: i32, quantity_for_public: i32) -> ProductBase
Trait Implementations
sourceimpl Clone for ProductBase
impl Clone for ProductBase
sourcefn clone(&self) -> ProductBase
fn clone(&self) -> ProductBase
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ProductBase
impl Debug for ProductBase
sourceimpl Default for ProductBase
impl Default for ProductBase
sourcefn default() -> ProductBase
fn default() -> ProductBase
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ProductBase
impl<'de> Deserialize<'de> for ProductBase
sourcefn 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
sourceimpl PartialEq<ProductBase> for ProductBase
impl PartialEq<ProductBase> for ProductBase
sourcefn eq(&self, other: &ProductBase) -> bool
fn eq(&self, other: &ProductBase) -> bool
sourceimpl Serialize for ProductBase
impl Serialize for ProductBase
impl StructuralPartialEq for ProductBase
Auto Trait Implementations
impl RefUnwindSafe for ProductBase
impl Send for ProductBase
impl Sync for ProductBase
impl Unpin for ProductBase
impl UnwindSafe for ProductBase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more