Struct google_api_proto::google::maps::places::v1::ev_charge_options::ConnectorAggregation
source · pub struct ConnectorAggregation {
pub type: i32,
pub max_charge_rate_kw: f64,
pub count: i32,
pub available_count: Option<i32>,
pub out_of_service_count: Option<i32>,
pub availability_last_update_time: Option<Timestamp>,
}
Expand description
EV charging information grouped by [type, max_charge_rate_kw]. Shows EV charge aggregation of connectors that have the same type and max charge rate in kw.
Fields§
§type: i32
The connector type of this aggregation.
max_charge_rate_kw: f64
The static max charging rate in kw of each connector in the aggregation.
count: i32
Number of connectors in this aggregation.
available_count: Option<i32>
Number of connectors in this aggregation that are currently available.
out_of_service_count: Option<i32>
Number of connectors in this aggregation that are currently out of service.
availability_last_update_time: Option<Timestamp>
The timestamp when the connector availability information in this aggregation was last updated.
Implementations§
source§impl ConnectorAggregation
impl ConnectorAggregation
sourcepub fn type(&self) -> EvConnectorType
pub fn type(&self) -> EvConnectorType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: EvConnectorType)
pub fn set_type(&mut self, value: EvConnectorType)
Sets type
to the provided enum value.
sourcepub fn available_count(&self) -> i32
pub fn available_count(&self) -> i32
Returns the value of available_count
, or the default value if available_count
is unset.
sourcepub fn out_of_service_count(&self) -> i32
pub fn out_of_service_count(&self) -> i32
Returns the value of out_of_service_count
, or the default value if out_of_service_count
is unset.
Trait Implementations§
source§impl Clone for ConnectorAggregation
impl Clone for ConnectorAggregation
source§fn clone(&self) -> ConnectorAggregation
fn clone(&self) -> ConnectorAggregation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConnectorAggregation
impl Debug for ConnectorAggregation
source§impl Default for ConnectorAggregation
impl Default for ConnectorAggregation
source§impl Message for ConnectorAggregation
impl Message for ConnectorAggregation
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ConnectorAggregation
impl PartialEq for ConnectorAggregation
source§fn eq(&self, other: &ConnectorAggregation) -> bool
fn eq(&self, other: &ConnectorAggregation) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for ConnectorAggregation
impl StructuralPartialEq for ConnectorAggregation
Auto Trait Implementations§
impl Freeze for ConnectorAggregation
impl RefUnwindSafe for ConnectorAggregation
impl Send for ConnectorAggregation
impl Sync for ConnectorAggregation
impl Unpin for ConnectorAggregation
impl UnwindSafe for ConnectorAggregation
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§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>
T
in a tonic::Request