pub struct GalleryImage {
pub url: String,
pub featured: bool,
pub title: Option<Option<String>>,
pub description: Option<Option<String>>,
pub created: String,
pub ordering: Option<i32>,
}Fields§
§url: StringThe URL of the gallery image
featured: boolWhether the image is featured in the gallery
title: Option<Option<String>>The title of the gallery image
description: Option<Option<String>>The description of the gallery image
created: StringThe date and time the gallery image was created
ordering: Option<i32>The order of the gallery image. Gallery images are sorted by this field and then alphabetically by title.
Implementations§
Source§impl GalleryImage
impl GalleryImage
Trait Implementations§
Source§impl Clone for GalleryImage
impl Clone for GalleryImage
Source§fn clone(&self) -> GalleryImage
fn clone(&self) -> GalleryImage
Returns a duplicate 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 GalleryImage
impl Debug for GalleryImage
Source§impl Default for GalleryImage
impl Default for GalleryImage
Source§fn default() -> GalleryImage
fn default() -> GalleryImage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GalleryImage
impl<'de> Deserialize<'de> for GalleryImage
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
Source§impl PartialEq for GalleryImage
impl PartialEq for GalleryImage
Source§impl Serialize for GalleryImage
impl Serialize for GalleryImage
impl StructuralPartialEq for GalleryImage
Auto Trait Implementations§
impl Freeze for GalleryImage
impl RefUnwindSafe for GalleryImage
impl Send for GalleryImage
impl Sync for GalleryImage
impl Unpin for GalleryImage
impl UnwindSafe for GalleryImage
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