pub struct WireNodeOutput {
pub updates: HashMap<String, Value>,
pub command: Option<Command>,
}Expand description
Serializable form of NodeOutput.
NodeOutput itself is deliberately not serde-enabled in the core API;
this wire type converts in both directions losslessly.
Fields§
§updates: HashMap<String, Value>Partial state updates, keyed by channel name.
command: Option<Command>Optional dynamic routing decision.
Trait Implementations§
Source§impl Clone for WireNodeOutput
impl Clone for WireNodeOutput
Source§impl Debug for WireNodeOutput
impl Debug for WireNodeOutput
Source§impl Default for WireNodeOutput
impl Default for WireNodeOutput
Source§impl<'de> Deserialize<'de> for WireNodeOutput
impl<'de> Deserialize<'de> for WireNodeOutput
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 From<NodeOutput> for WireNodeOutput
impl From<NodeOutput> for WireNodeOutput
Source§fn from(output: NodeOutput) -> Self
fn from(output: NodeOutput) -> Self
Converts to this type from the input type.
Source§impl From<WireNodeOutput> for NodeOutput
impl From<WireNodeOutput> for NodeOutput
Source§fn from(wire: WireNodeOutput) -> Self
fn from(wire: WireNodeOutput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WireNodeOutput
impl RefUnwindSafe for WireNodeOutput
impl Send for WireNodeOutput
impl Sync for WireNodeOutput
impl Unpin for WireNodeOutput
impl UnsafeUnpin for WireNodeOutput
impl UnwindSafe for WireNodeOutput
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