Enum comfyui_api::models::prompt::GenericValue
source · pub enum GenericValue {
Bool(bool),
Int(i64),
Float(f32),
String(String),
NodeConnection(NodeConnection),
}
Expand description
Enum of possible generic node input types.
Variants§
Bool(bool)
Bool input variant.
Int(i64)
Integer input variant.
Float(f32)
Float input variant.
String(String)
String input variant.
NodeConnection(NodeConnection)
Node connection input variant.
Implementations§
Trait Implementations§
source§impl Clone for GenericValue
impl Clone for GenericValue
source§fn clone(&self) -> GenericValue
fn clone(&self) -> GenericValue
Returns a copy 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 GenericValue
impl Debug for GenericValue
source§impl<'de> Deserialize<'de> for GenericValue
impl<'de> Deserialize<'de> for GenericValue
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
Auto Trait Implementations§
impl Freeze for GenericValue
impl RefUnwindSafe for GenericValue
impl Send for GenericValue
impl Sync for GenericValue
impl Unpin for GenericValue
impl UnwindSafe for GenericValue
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