#[repr(C)]pub struct sd_img_gen_params_t {Show 22 fields
pub loras: *const sd_lora_t,
pub lora_count: u32,
pub prompt: *const c_char,
pub negative_prompt: *const c_char,
pub clip_skip: c_int,
pub init_image: sd_image_t,
pub ref_images: *mut sd_image_t,
pub ref_images_count: c_int,
pub auto_resize_ref_image: bool,
pub increase_ref_index: bool,
pub mask_image: sd_image_t,
pub width: c_int,
pub height: c_int,
pub sample_params: sd_sample_params_t,
pub strength: f32,
pub seed: i64,
pub batch_count: c_int,
pub control_image: sd_image_t,
pub control_strength: f32,
pub pm_params: sd_pm_params_t,
pub vae_tiling_params: sd_tiling_params_t,
pub cache: sd_cache_params_t,
}Fields§
§loras: *const sd_lora_t§lora_count: u32§prompt: *const c_char§negative_prompt: *const c_char§clip_skip: c_int§init_image: sd_image_t§ref_images: *mut sd_image_t§ref_images_count: c_int§auto_resize_ref_image: bool§increase_ref_index: bool§mask_image: sd_image_t§width: c_int§height: c_int§sample_params: sd_sample_params_t§strength: f32§seed: i64§batch_count: c_int§control_image: sd_image_t§control_strength: f32§pm_params: sd_pm_params_t§vae_tiling_params: sd_tiling_params_t§cache: sd_cache_params_tTrait Implementations§
Source§impl Clone for sd_img_gen_params_t
impl Clone for sd_img_gen_params_t
Source§fn clone(&self) -> sd_img_gen_params_t
fn clone(&self) -> sd_img_gen_params_t
Returns a duplicate 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 sd_img_gen_params_t
impl Debug for sd_img_gen_params_t
impl Copy for sd_img_gen_params_t
Auto Trait Implementations§
impl Freeze for sd_img_gen_params_t
impl RefUnwindSafe for sd_img_gen_params_t
impl !Send for sd_img_gen_params_t
impl !Sync for sd_img_gen_params_t
impl Unpin for sd_img_gen_params_t
impl UnwindSafe for sd_img_gen_params_t
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