#[non_exhaustive]pub struct ImagesResponse {
pub created: u64,
pub background: Option<ImageResponseBackground>,
pub data: Option<Vec<Image>>,
pub output_format: Option<ImageOutputFormat>,
pub quality: Option<ImageResponseQuality>,
pub size: Option<ImageResponseSize>,
pub usage: Option<ImageUsage>,
pub extra: Extra,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.created: u64§background: Option<ImageResponseBackground>§data: Option<Vec<Image>>§output_format: Option<ImageOutputFormat>§quality: Option<ImageResponseQuality>§size: Option<ImageResponseSize>§usage: Option<ImageUsage>§extra: ExtraImplementations§
Trait Implementations§
Source§impl Clone for ImagesResponse
impl Clone for ImagesResponse
Source§fn clone(&self) -> ImagesResponse
fn clone(&self) -> ImagesResponse
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 ImagesResponse
impl Debug for ImagesResponse
Source§impl<'de> Deserialize<'de> for ImagesResponse
impl<'de> Deserialize<'de> for ImagesResponse
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 ImagesResponse
impl PartialEq for ImagesResponse
Source§impl Serialize for ImagesResponse
impl Serialize for ImagesResponse
impl StructuralPartialEq for ImagesResponse
Auto Trait Implementations§
impl Freeze for ImagesResponse
impl RefUnwindSafe for ImagesResponse
impl Send for ImagesResponse
impl Sync for ImagesResponse
impl Unpin for ImagesResponse
impl UnsafeUnpin for ImagesResponse
impl UnwindSafe for ImagesResponse
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