pub struct Instructed {
pub id: Id,
pub kind: MessageKind,
pub message: Message,
pub explanation: Explanation,
}Expand description
An instruction the Customer Energy Manager sent, already acknowledged and already resolved against the description this session published.
The point of resolving it here is that a Resource Manager should never have to look
an identifier up: it is handed the actuator, the operation mode, the factor, the
power that factor implies and the timers in the way. That is what every Resource
Manager writes by hand today, and what hems asked s2energy for.
Fields§
§id: IdThe instruction’s own identifier — what an InstructionStatusUpdate names.
kind: MessageKindWhich kind of instruction it is.
message: MessageThe message itself, for anything the explanation does not cover.
explanation: ExplanationWhat it means.
Trait Implementations§
Source§impl Clone for Instructed
impl Clone for Instructed
Source§impl Debug for Instructed
impl Debug for Instructed
Source§impl PartialEq for Instructed
impl PartialEq for Instructed
impl StructuralPartialEq for Instructed
Auto Trait Implementations§
impl Forget for Instructed
impl Freeze for Instructed
impl Move for Instructed
impl RefUnwindSafe for Instructed
impl Send for Instructed
impl Sync for Instructed
impl Unpin for Instructed
impl UnsafeUnpin for Instructed
impl UnwindSafe for Instructed
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