Struct comfyui_api::models::prompt::Prompt
source · pub struct Prompt {
pub workflow: HashMap<String, NodeOrUnknown>,
}
Expand description
Struct representing a prompt workflow.
Fields§
§workflow: HashMap<String, NodeOrUnknown>
The prompt workflow, indexed by node id.
Implementations§
source§impl Prompt
impl Prompt
pub fn get_node_by_id(&self, id: &str) -> Option<&dyn Node>
pub fn get_node_by_id_mut(&mut self, id: &str) -> Option<&mut dyn Node>
pub fn get_nodes_by_type<T: Node + 'static>( &self, ) -> impl Iterator<Item = (&str, &T)>
pub fn get_nodes_by_type_mut<T: Node + 'static>( &mut self, ) -> impl Iterator<Item = (&str, &mut T)>
Trait Implementations§
source§impl BatchSizeExt for Prompt
impl BatchSizeExt for Prompt
source§impl DenoiseExt for Prompt
impl DenoiseExt for Prompt
source§impl<'de> Deserialize<'de> for Prompt
impl<'de> Deserialize<'de> for Prompt
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 LoadImageExt for Prompt
impl LoadImageExt for Prompt
source§impl NegativePromptExt for Prompt
impl NegativePromptExt for Prompt
source§impl SamplerExt for Prompt
impl SamplerExt for Prompt
source§impl<N: Node + 'static> SetExt<N> for Prompt
impl<N: Node + 'static> SetExt<N> for Prompt
source§impl<T, N: Node + 'static> SetterExt<T, N> for Prompt
impl<T, N: Node + 'static> SetterExt<T, N> for Prompt
Auto Trait Implementations§
impl Freeze for Prompt
impl !RefUnwindSafe for Prompt
impl Send for Prompt
impl Sync for Prompt
impl Unpin for Prompt
impl !UnwindSafe for Prompt
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