pub enum Prompt<'a> {
Str(&'a str),
Value(&'a Value),
}Expand description
Prompt param for
ComfyUIClient::post_prompt.
Represents a prompt that can be submitted to the ComfyUI server for execution. The prompt defines the workflow to be executed, including all nodes and their connections, as well as the input parameters for each node.
Variants§
Str(&'a str)
A string slice representing the prompt in JSON format.
Use this variant when you have a JSON string representation of the workflow.
Value(&'a Value)
A JSON value representing the prompt data.
Use this variant when you have already parsed the workflow into a serde_json Value.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Prompt<'a>
impl<'a> RefUnwindSafe for Prompt<'a>
impl<'a> Send for Prompt<'a>
impl<'a> Sync for Prompt<'a>
impl<'a> Unpin for Prompt<'a>
impl<'a> UnwindSafe for Prompt<'a>
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