pub struct ProductCategory {
pub name: String,
pub description: Option<String>,
}Fields§
§name: String§description: Option<String>Trait Implementations§
Source§impl Clone for ProductCategory
impl Clone for ProductCategory
Source§fn clone(&self) -> ProductCategory
fn clone(&self) -> ProductCategory
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 ProductCategory
impl Debug for ProductCategory
Source§impl PartialEq for ProductCategory
impl PartialEq for ProductCategory
Source§fn eq(&self, other: &ProductCategory) -> bool
fn eq(&self, other: &ProductCategory) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProductCategory
Auto Trait Implementations§
impl Freeze for ProductCategory
impl RefUnwindSafe for ProductCategory
impl Send for ProductCategory
impl Sync for ProductCategory
impl Unpin for ProductCategory
impl UnsafeUnpin for ProductCategory
impl UnwindSafe for ProductCategory
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