pub struct StateUpdate {
pub service_type: String,
pub target: String,
pub property: String,
pub output_id: Option<String>,
pub value: Value,
}Expand description
State update from an external service. The edge-agent forwards these over WebSocket to the config-server for fan-out to the Web UI, and can also drive local device feedback (LED glyphs, etc.).
Fields§
§service_type: String§target: String§property: String§output_id: Option<String>§value: ValueTrait Implementations§
Source§impl Clone for StateUpdate
impl Clone for StateUpdate
Source§fn clone(&self) -> StateUpdate
fn clone(&self) -> StateUpdate
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for StateUpdate
impl RefUnwindSafe for StateUpdate
impl Send for StateUpdate
impl Sync for StateUpdate
impl Unpin for StateUpdate
impl UnsafeUnpin for StateUpdate
impl UnwindSafe for StateUpdate
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