Struct sal_e_api::Img2ImgParams
source · pub struct Img2ImgParams {
pub user_params: Img2ImgRequest,
pub defaults: Option<Img2ImgRequest>,
}
Expand description
A struct representing the parameters for image generation in the Stable Diffusion WebUI API.
Fields§
§user_params: Img2ImgRequest
The parameters provided by the user.
defaults: Option<Img2ImgRequest>
The default parameters.
Trait Implementations§
source§impl Clone for Img2ImgParams
impl Clone for Img2ImgParams
source§fn clone(&self) -> Img2ImgParams
fn clone(&self) -> Img2ImgParams
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 Img2ImgParams
impl Debug for Img2ImgParams
source§impl Default for Img2ImgParams
impl Default for Img2ImgParams
source§fn default() -> Img2ImgParams
fn default() -> Img2ImgParams
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Img2ImgParams
impl<'de> Deserialize<'de> for Img2ImgParams
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 From<&dyn GenParams> for Img2ImgParams
impl From<&dyn GenParams> for Img2ImgParams
source§impl GenParams for Img2ImgParams
impl GenParams for Img2ImgParams
source§fn set_height(&mut self, height: u32)
fn set_height(&mut self, height: u32)
Sets the image height.
source§fn set_prompt(&mut self, prompt: String)
fn set_prompt(&mut self, prompt: String)
Sets the prompt.
source§fn negative_prompt(&self) -> Option<String>
fn negative_prompt(&self) -> Option<String>
Gets the negative prompt.
source§fn set_negative_prompt(&mut self, negative_prompt: String)
fn set_negative_prompt(&mut self, negative_prompt: String)
Sets the negative prompt.
source§fn set_denoising(&mut self, denoising: f32)
fn set_denoising(&mut self, denoising: f32)
Sets the denoising strength.
source§fn set_sampler(&mut self, sampler: String)
fn set_sampler(&mut self, sampler: String)
Sets the sampler.
source§fn batch_size(&self) -> Option<u32>
fn batch_size(&self) -> Option<u32>
Gets the batch size.
source§fn set_batch_size(&mut self, batch_size: u32)
fn set_batch_size(&mut self, batch_size: u32)
Sets the batch size.
source§impl PartialEq for Img2ImgParams
impl PartialEq for Img2ImgParams
source§fn eq(&self, other: &Img2ImgParams) -> bool
fn eq(&self, other: &Img2ImgParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Img2ImgParams
impl Serialize for Img2ImgParams
impl StructuralPartialEq for Img2ImgParams
Auto Trait Implementations§
impl Freeze for Img2ImgParams
impl RefUnwindSafe for Img2ImgParams
impl Send for Img2ImgParams
impl Sync for Img2ImgParams
impl Unpin for Img2ImgParams
impl UnwindSafe for Img2ImgParams
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