Struct stable_diffusion_api::ImgInfo

source ·
pub struct ImgInfo {
Show 31 fields pub prompt: Option<String>, pub all_prompts: Option<Vec<String>>, pub negative_prompt: Option<String>, pub all_negative_prompts: Option<Vec<String>>, pub seed: Option<i64>, pub all_seeds: Option<Vec<i64>>, pub subseed: Option<i64>, pub all_subseeds: Option<Vec<i64>>, pub subseed_strength: Option<u32>, pub width: Option<i32>, pub height: Option<i32>, pub sampler_name: Option<String>, pub cfg_scale: Option<f64>, pub steps: Option<u32>, pub batch_size: Option<u32>, pub restore_faces: Option<bool>, pub face_restoration_model: Option<Value>, pub sd_model_name: Option<String>, pub sd_model_hash: Option<String>, pub sd_vae_name: Option<String>, pub sd_vae_hash: Option<String>, pub seed_resize_from_w: Option<i32>, pub seed_resize_from_h: Option<i32>, pub denoising_strength: Option<f64>, pub extra_generation_params: Option<ExtraGenParams>, pub index_of_first_image: Option<u32>, pub infotexts: Option<Vec<String>>, pub styles: Option<Vec<String>>, pub job_timestamp: Option<String>, pub clip_skip: Option<u32>, pub is_using_inpainting_conditioning: Option<bool>,
}
Expand description

Information about the generated images.

Fields§

§prompt: Option<String>

The prompt used when generating the image.

§all_prompts: Option<Vec<String>>

A vector of all the prompts used for image generation.

§negative_prompt: Option<String>

The negative prompt used when generating the image.

§all_negative_prompts: Option<Vec<String>>

A vector of all negative prompts used when generating the image.

§seed: Option<i64>

The random seed used for image generation.

§all_seeds: Option<Vec<i64>>

A vector of all the random seeds used for image generation.

§subseed: Option<i64>

The subseed used when generating the image.

§all_subseeds: Option<Vec<i64>>

A vector of all the subseeds used for image generation.

§subseed_strength: Option<u32>

The strength of the subseed used when generating the image.

§width: Option<i32>

The width of the generated image.

§height: Option<i32>

The height of the generated image.

§sampler_name: Option<String>

The name of the sampler used for image generation.

§cfg_scale: Option<f64>

The cfg scale factor used when generating the image.

§steps: Option<u32>

The number of steps taken when generating the image.

§batch_size: Option<u32>

The number of images generated in one batch.

§restore_faces: Option<bool>

Whether or not face restoration was used.

§face_restoration_model: Option<Value>

The face restoration model used when generating the image.

§sd_model_name: Option<String>

The name of the sd model used when generating the image.

§sd_model_hash: Option<String>

The hash of the sd model used for image generation.

§sd_vae_name: Option<String>

The name of the VAE used when generating the image.

§sd_vae_hash: Option<String>

The hash of the VAE used for image generation.

§seed_resize_from_w: Option<i32>

The width used when resizing the image seed.

§seed_resize_from_h: Option<i32>

The height used when resizing the image seed.

§denoising_strength: Option<f64>

The strength of the denoising applied during image generation.

§extra_generation_params: Option<ExtraGenParams>

Extra parameters passed for image generation.

§index_of_first_image: Option<u32>

The index of the first image.

§infotexts: Option<Vec<String>>

A vector of information texts about the generated images.

§styles: Option<Vec<String>>

A vector of the styles used for image generation.

§job_timestamp: Option<String>

The timestamp of when the job was started.

§clip_skip: Option<u32>

The number of clip layers skipped during image generation.

§is_using_inpainting_conditioning: Option<bool>

Whether or not inpainting conditioning was used for image generation.

Trait Implementations§

source§

impl Clone for ImgInfo

source§

fn clone(&self) -> ImgInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ImgInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ImgInfo

source§

fn default() -> ImgInfo

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ImgInfo

source§

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 Serialize for ImgInfo

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,