Struct sal_e_api::Txt2ImgParams
source · pub struct Txt2ImgParams {
pub user_params: Txt2ImgRequest,
pub defaults: Option<Txt2ImgRequest>,
}
Expand description
A struct representing the parameters for image generation in the Stable Diffusion WebUI API.
Fields§
§user_params: Txt2ImgRequest
The parameters provided by the user.
defaults: Option<Txt2ImgRequest>
The default parameters.
Trait Implementations§
source§impl Clone for Txt2ImgParams
impl Clone for Txt2ImgParams
source§fn clone(&self) -> Txt2ImgParams
fn clone(&self) -> Txt2ImgParams
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 Txt2ImgParams
impl Debug for Txt2ImgParams
source§impl Default for Txt2ImgParams
impl Default for Txt2ImgParams
source§fn default() -> Txt2ImgParams
fn default() -> Txt2ImgParams
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Txt2ImgParams
impl<'de> Deserialize<'de> for Txt2ImgParams
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 Txt2ImgParams
impl From<&dyn GenParams> for Txt2ImgParams
source§impl GenParams for Txt2ImgParams
impl GenParams for Txt2ImgParams
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 Txt2ImgParams
impl PartialEq for Txt2ImgParams
source§fn eq(&self, other: &Txt2ImgParams) -> bool
fn eq(&self, other: &Txt2ImgParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Txt2ImgParams
impl Serialize for Txt2ImgParams
impl StructuralPartialEq for Txt2ImgParams
Auto Trait Implementations§
impl Freeze for Txt2ImgParams
impl RefUnwindSafe for Txt2ImgParams
impl Send for Txt2ImgParams
impl Sync for Txt2ImgParams
impl Unpin for Txt2ImgParams
impl UnwindSafe for Txt2ImgParams
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