pub struct StaticInputDef {
pub node: String,
pub port: usize,
pub value: Value,
}Expand description
A serializable static input: an initial pin value injected before execution.
Values are JSON. Instantiation maps them back to typed BspValues through the
registry’s value factory (crate::registry::default_value_factory by default).
Fields§
§node: StringTarget node id (the stable string label).
port: usizeTarget input port.
value: ValueThe value as JSON.
Trait Implementations§
Source§impl Clone for StaticInputDef
impl Clone for StaticInputDef
Source§impl Debug for StaticInputDef
impl Debug for StaticInputDef
Source§impl<'de> Deserialize<'de> for StaticInputDef
impl<'de> Deserialize<'de> for StaticInputDef
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 PartialEq for StaticInputDef
impl PartialEq for StaticInputDef
Source§impl Serialize for StaticInputDef
impl Serialize for StaticInputDef
impl StructuralPartialEq for StaticInputDef
Auto Trait Implementations§
impl Freeze for StaticInputDef
impl RefUnwindSafe for StaticInputDef
impl Send for StaticInputDef
impl Sync for StaticInputDef
impl Unpin for StaticInputDef
impl UnsafeUnpin for StaticInputDef
impl UnwindSafe for StaticInputDef
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