Struct sal_e_api::ComfyParams
source · pub struct ComfyParams {Show 13 fields
pub prompt: Option<Prompt>,
pub seed: Option<i64>,
pub steps: Option<u32>,
pub count: u32,
pub cfg: Option<f32>,
pub width: Option<u32>,
pub height: Option<u32>,
pub prompt_text: Option<String>,
pub negative_prompt_text: Option<String>,
pub denoising: Option<f32>,
pub sampler: Option<String>,
pub batch_size: Option<u32>,
pub image: Option<Vec<u8>>,
}
Expand description
A struct representing the parameters for ComfyUI image generation.
Fields§
§prompt: Option<Prompt>
The ComfyUI prompt to use for generation.
seed: Option<i64>
The random seed to use for generation.
steps: Option<u32>
The number of steps to take for generation.
count: u32
The number of images to generate.
cfg: Option<f32>
The CFG scale to use for generation.
width: Option<u32>
The image width to use for generation.
height: Option<u32>
The image height to use for generation.
prompt_text: Option<String>
The prompt text to use for generation.
negative_prompt_text: Option<String>
The negative prompt text to use for generation.
denoising: Option<f32>
The denoising strength to use for generation.
sampler: Option<String>
The sampler to use for generation.
batch_size: Option<u32>
The batch size to use for generation.
image: Option<Vec<u8>>
The image to use for generation.
Implementations§
source§impl ComfyParams
impl ComfyParams
Trait Implementations§
source§impl Clone for ComfyParams
impl Clone for ComfyParams
source§fn clone(&self) -> ComfyParams
fn clone(&self) -> ComfyParams
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 ComfyParams
impl Debug for ComfyParams
source§impl Default for ComfyParams
impl Default for ComfyParams
source§fn default() -> ComfyParams
fn default() -> ComfyParams
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ComfyParams
impl<'de> Deserialize<'de> for ComfyParams
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 ComfyParams
impl From<&dyn GenParams> for ComfyParams
source§impl GenParams for ComfyParams
impl GenParams for ComfyParams
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.
Auto Trait Implementations§
impl Freeze for ComfyParams
impl !RefUnwindSafe for ComfyParams
impl Send for ComfyParams
impl Sync for ComfyParams
impl Unpin for ComfyParams
impl !UnwindSafe for ComfyParams
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