pub struct InverterBatteryGroupStatus {
pub healthy_inverters: HashMap<u64, ElectricalComponentTelemetry>,
pub healthy_batteries: HashMap<u64, ElectricalComponentTelemetry>,
pub unhealthy_inverters: HashMap<u64, Option<ElectricalComponentTelemetry>>,
pub unhealthy_batteries: HashMap<u64, Option<ElectricalComponentTelemetry>>,
}Expand description
A snapshot of an inverter-battery group’s components, partitioned by health status and annotated with the latest telemetry sample for each component.
The healthy_* maps hold the most recent ElectricalComponentTelemetry
observed for each healthy component. The unhealthy_* maps hold the last
telemetry observed before the component became unhealthy, or None if no
sample has been received yet. Consumers can use the telemetry (including
per-metric bounds) directly without subscribing to the raw streams again.
Fields§
§healthy_inverters: HashMap<u64, ElectricalComponentTelemetry>§healthy_batteries: HashMap<u64, ElectricalComponentTelemetry>§unhealthy_inverters: HashMap<u64, Option<ElectricalComponentTelemetry>>§unhealthy_batteries: HashMap<u64, Option<ElectricalComponentTelemetry>>Trait Implementations§
Source§impl Clone for InverterBatteryGroupStatus
impl Clone for InverterBatteryGroupStatus
Source§fn clone(&self) -> InverterBatteryGroupStatus
fn clone(&self) -> InverterBatteryGroupStatus
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 InverterBatteryGroupStatus
impl Debug for InverterBatteryGroupStatus
Source§impl PartialEq for InverterBatteryGroupStatus
impl PartialEq for InverterBatteryGroupStatus
Source§fn eq(&self, other: &InverterBatteryGroupStatus) -> bool
fn eq(&self, other: &InverterBatteryGroupStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InverterBatteryGroupStatus
Auto Trait Implementations§
impl Freeze for InverterBatteryGroupStatus
impl RefUnwindSafe for InverterBatteryGroupStatus
impl Send for InverterBatteryGroupStatus
impl Sync for InverterBatteryGroupStatus
impl Unpin for InverterBatteryGroupStatus
impl UnsafeUnpin for InverterBatteryGroupStatus
impl UnwindSafe for InverterBatteryGroupStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request