pub struct RuntimeDispatchResponse {
pub ok: bool,
pub output: Value,
pub events: Vec<Value>,
pub error: Option<DispatchError>,
}Expand description
Payload of a greentic.<runtime>.response.v1 message.
The transport correlation id MUST echo the request’s.
Fields§
§ok: boolWhether the runtime handled the request successfully.
output: ValueRuntime output payload (meaningful when ok).
events: Vec<Value>Optional runtime-emitted events.
error: Option<DispatchError>Error details when ok is false.
Trait Implementations§
Source§impl Clone for RuntimeDispatchResponse
impl Clone for RuntimeDispatchResponse
Source§fn clone(&self) -> RuntimeDispatchResponse
fn clone(&self) -> RuntimeDispatchResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuntimeDispatchResponse
impl Debug for RuntimeDispatchResponse
Source§impl<'de> Deserialize<'de> for RuntimeDispatchResponse
impl<'de> Deserialize<'de> for RuntimeDispatchResponse
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 RuntimeDispatchResponse
impl PartialEq for RuntimeDispatchResponse
Source§fn eq(&self, other: &RuntimeDispatchResponse) -> bool
fn eq(&self, other: &RuntimeDispatchResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RuntimeDispatchResponse
impl Serialize for RuntimeDispatchResponse
impl StructuralPartialEq for RuntimeDispatchResponse
Auto Trait Implementations§
impl Freeze for RuntimeDispatchResponse
impl RefUnwindSafe for RuntimeDispatchResponse
impl Send for RuntimeDispatchResponse
impl Sync for RuntimeDispatchResponse
impl Unpin for RuntimeDispatchResponse
impl UnsafeUnpin for RuntimeDispatchResponse
impl UnwindSafe for RuntimeDispatchResponse
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