pub struct ProductImage {
pub id: i32,
pub date_created: NaiveDateTime,
pub date_created_gmt: NaiveDateTime,
pub date_modified: NaiveDateTime,
pub date_modified_gmt: NaiveDateTime,
pub src: String,
pub name: String,
pub alt: String,
}
Fields§
§id: i32
Image ID.
date_created: NaiveDateTime
The date the image was created, in the site’s timezone.
date_created_gmt: NaiveDateTime
The date the image was created, as GMT.
date_modified: NaiveDateTime
The date the image was last modified, in the site’s timezone.
date_modified_gmt: NaiveDateTime
The date the image was last modified, as GMT.
src: String
Image URL.
name: String
Image name.
alt: String
Image alternative text.
Trait Implementations§
Source§impl Clone for ProductImage
impl Clone for ProductImage
Source§fn clone(&self) -> ProductImage
fn clone(&self) -> ProductImage
Returns a copy 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 ProductImage
impl Debug for ProductImage
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 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