pub struct ProductCardProps { /* private fields */ }Expand description
Reference strongly-typed Props struct for ProductCardContract (Sec 11.9).
Implementations§
Source§impl ProductCardProps
impl ProductCardProps
pub fn get_product_id(&self) -> &String
pub fn get_mut_product_id(&mut self) -> &mut String
pub fn set_product_id(&mut self, val: String) -> &mut Self
pub fn get_quantity(&self) -> u32
pub fn get_mut_quantity(&mut self) -> &mut u32
pub fn set_quantity(&mut self, val: u32) -> &mut Self
Trait Implementations§
Source§impl Clone for ProductCardProps
impl Clone for ProductCardProps
Source§impl Debug for ProductCardProps
impl Debug for ProductCardProps
Source§impl Default for ProductCardProps
impl Default for ProductCardProps
Source§impl<'de> Deserialize<'de> for ProductCardProps
impl<'de> Deserialize<'de> for ProductCardProps
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
impl Eq for ProductCardProps
Source§impl Hash for ProductCardProps
impl Hash for ProductCardProps
Source§impl PartialEq for ProductCardProps
impl PartialEq for ProductCardProps
Source§impl Serialize for ProductCardProps
impl Serialize for ProductCardProps
impl StructuralPartialEq for ProductCardProps
Auto Trait Implementations§
impl Forget for ProductCardProps
impl Freeze for ProductCardProps
impl Move for ProductCardProps
impl RefUnwindSafe for ProductCardProps
impl Send for ProductCardPropswhere
RawVecInner: Send,
impl Sync for ProductCardPropswhere
RawVecInner: Sync,
impl Unpin for ProductCardProps
impl UnsafeUnpin for ProductCardProps
impl UnwindSafe for ProductCardPropswhere
RawVecInner: UnwindSafe,
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