pub struct LlmImageGen {
pub base_prompt: String,
pub negative_prompt: String,
pub size: String,
pub steps: u32,
pub img2img: bool,
pub requires_source_image: bool,
}Expand description
LLM image generation parameters baked into the preset.
Fields§
§base_prompt: String§negative_prompt: String§size: StringResolution string, e.g. “512x512”.
steps: u32§img2img: boolimg2img mode — required for the polaroid family.
requires_source_image: boolWhether the user must supply a source photo before render.
Trait Implementations§
Source§impl Clone for LlmImageGen
impl Clone for LlmImageGen
Source§fn clone(&self) -> LlmImageGen
fn clone(&self) -> LlmImageGen
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LlmImageGen
impl Debug for LlmImageGen
Source§impl<'de> Deserialize<'de> for LlmImageGen
impl<'de> Deserialize<'de> for LlmImageGen
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 PartialEq for LlmImageGen
impl PartialEq for LlmImageGen
Source§fn eq(&self, other: &LlmImageGen) -> bool
fn eq(&self, other: &LlmImageGen) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LlmImageGen
impl Serialize for LlmImageGen
impl StructuralPartialEq for LlmImageGen
Auto Trait Implementations§
impl Freeze for LlmImageGen
impl RefUnwindSafe for LlmImageGen
impl Send for LlmImageGen
impl Sync for LlmImageGen
impl Unpin for LlmImageGen
impl UnsafeUnpin for LlmImageGen
impl UnwindSafe for LlmImageGen
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