Struct stable_diffusion_bot::ComfyUIConfig
source · pub struct ComfyUIConfig {
pub txt2img_prompt_file: Option<PathBuf>,
pub img2img_prompt_file: Option<PathBuf>,
}
Expand description
Struct that represents the configuration for the ComfyUI API.
Fields§
§txt2img_prompt_file: Option<PathBuf>
Path to the prompt file for text to image requests.
img2img_prompt_file: Option<PathBuf>
Path to the prompt file for image to image requests.
Trait Implementations§
source§impl Debug for ComfyUIConfig
impl Debug for ComfyUIConfig
source§impl Default for ComfyUIConfig
impl Default for ComfyUIConfig
source§fn default() -> ComfyUIConfig
fn default() -> ComfyUIConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ComfyUIConfig
impl<'de> Deserialize<'de> for ComfyUIConfig
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 ComfyUIConfig
impl RefUnwindSafe for ComfyUIConfig
impl Send for ComfyUIConfig
impl Sync for ComfyUIConfig
impl Unpin for ComfyUIConfig
impl UnwindSafe for ComfyUIConfig
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