pub struct DiffusionImage {
pub id: u64,
pub steps: ImageSteps,
pub size: ImageSize,
pub model: ImageModel,
pub credits_used: u64,
pub created_at: String,
pub updated_at: String,
pub raw: String,
}
Expand description
The image response returned from the API when the image is complete
Fields§
§id: u64
§steps: ImageSteps
§size: ImageSize
§model: ImageModel
§credits_used: u64
§created_at: String
§updated_at: String
§raw: String
Trait Implementations§
Source§impl Clone for DiffusionImage
impl Clone for DiffusionImage
Source§fn clone(&self) -> DiffusionImage
fn clone(&self) -> DiffusionImage
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 DiffusionImage
impl Debug for DiffusionImage
Source§impl<'de> Deserialize<'de> for DiffusionImage
impl<'de> Deserialize<'de> for DiffusionImage
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 DiffusionImage
impl RefUnwindSafe for DiffusionImage
impl Send for DiffusionImage
impl Sync for DiffusionImage
impl Unpin for DiffusionImage
impl UnwindSafe for DiffusionImage
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