Struct comfyui_api::comfy::ImageInfo
source · pub struct ImageInfo {
pub prompt: Option<String>,
pub negative_prompt: Option<String>,
pub model: Option<String>,
pub width: Option<u32>,
pub height: Option<u32>,
pub seed: Option<i64>,
}
Expand description
Information about the generated image.
Fields§
§prompt: Option<String>
The prompt used to generate the image.
negative_prompt: Option<String>
The negative prompt used to generate the image.
model: Option<String>
The model used to generate the image.
width: Option<u32>
The width of the image.
height: Option<u32>
The height of the image.
seed: Option<i64>
The seed used to generate the image.
Implementations§
source§impl ImageInfo
impl ImageInfo
sourcepub fn new_from_prompt(prompt: &Prompt, output_node: &str) -> Result<ImageInfo>
pub fn new_from_prompt(prompt: &Prompt, output_node: &str) -> Result<ImageInfo>
Returns a new ImageInfo
instance based on the given Prompt
and output node.
§Arguments
prompt
- APrompt
describing the workflow used to generate an image.output_node
- The output node that produced the image.
§Returns
A Result
containing a new ImageInfo
instance on success, or an error if the output node was not found.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImageInfo
impl RefUnwindSafe for ImageInfo
impl Send for ImageInfo
impl Sync for ImageInfo
impl Unpin for ImageInfo
impl UnwindSafe for ImageInfo
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