pub struct ProductImage {
pub url: String,
pub alt: Option<String>,
}Expand description
An image associated with a product.
Fields§
§url: StringImage URL.
alt: Option<String>Alternative text for the image.
Trait Implementations§
Source§impl Clone for ProductImage
impl Clone for ProductImage
Source§fn clone(&self) -> ProductImage
fn clone(&self) -> ProductImage
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 ProductImage
impl Debug for ProductImage
Source§impl Default for ProductImage
impl Default for ProductImage
Source§fn default() -> ProductImage
fn default() -> ProductImage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProductImage
impl<'de> Deserialize<'de> for ProductImage
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 ProductImage
impl RefUnwindSafe for ProductImage
impl Send for ProductImage
impl Sync for ProductImage
impl Unpin for ProductImage
impl UnsafeUnpin for ProductImage
impl UnwindSafe for ProductImage
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