pub struct ImageCreateRequest {
pub name: String,
pub description: String,
pub is_premium: bool,
pub publish_at: Option<Publish>,
pub styles: Vec<ImageStyleId>,
pub age_ranges: Vec<AgeRangeId>,
pub affiliations: Vec<AffiliationId>,
pub tags: Vec<ImageTagIndex>,
pub categories: Vec<CategoryId>,
pub size: ImageSize,
}
Expand description
Request to create a new image.
Fields§
§name: String
The name of the image.
description: String
The description of the image.
Is the image premium?
publish_at: Option<Publish>
When to publish the image.
If Some
publish the image according to the Publish
. Otherwise, don’t publish it.
styles: Vec<ImageStyleId>
The image’s styles.
age_ranges: Vec<AgeRangeId>
The image’s age ranges.
affiliations: Vec<AffiliationId>
The image’s affiliations.
The image’s tags.
categories: Vec<CategoryId>
The image’s categories.
size: ImageSize
What kind of image this is.
Trait Implementations§
Source§impl Debug for ImageCreateRequest
impl Debug for ImageCreateRequest
Source§impl<'de> Deserialize<'de> for ImageCreateRequest
impl<'de> Deserialize<'de> for ImageCreateRequest
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 ImageCreateRequest
impl RefUnwindSafe for ImageCreateRequest
impl Send for ImageCreateRequest
impl Sync for ImageCreateRequest
impl Unpin for ImageCreateRequest
impl UnwindSafe for ImageCreateRequest
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