Struct google_api_proto::google::maps::solar::v1::SolarPanel
source · pub struct SolarPanel {
pub center: Option<LatLng>,
pub orientation: i32,
pub yearly_energy_dc_kwh: f32,
pub segment_index: Option<i32>,
}
Expand description
SolarPanel describes the position, orientation, and production of a single solar panel. See the [panel_height_meters] [google.maps.solar.v1.SolarPotential.panel_height_meters], [panel_width_meters] [google.maps.solar.v1.SolarPotential.panel_width_meters], and [panel_capacity_watts] [google.maps.solar.v1.SolarPotential.panel_capacity_watts] fields in [SolarPotential] [google.maps.solar.v1.SolarPotential] for information on the parameters of the panel.
Fields§
§center: Option<LatLng>
The centre of the panel.
orientation: i32
The orientation of the panel.
yearly_energy_dc_kwh: f32
How much sunlight energy this layout captures over the course of a year, in DC kWh.
segment_index: Option<i32>
Index in [roof_segment_stats]
[google.maps.solar.v1.SolarPotential.roof_segment_stats]
of the RoofSegmentSizeAndSunshineStats
which corresponds to the
roof segment that this panel is placed on.
Implementations§
source§impl SolarPanel
impl SolarPanel
sourcepub fn orientation(&self) -> SolarPanelOrientation
pub fn orientation(&self) -> SolarPanelOrientation
Returns the enum value of orientation
, or the default if the field is set to an invalid enum value.
sourcepub fn set_orientation(&mut self, value: SolarPanelOrientation)
pub fn set_orientation(&mut self, value: SolarPanelOrientation)
Sets orientation
to the provided enum value.
sourcepub fn segment_index(&self) -> i32
pub fn segment_index(&self) -> i32
Returns the value of segment_index
, or the default value if segment_index
is unset.
Trait Implementations§
source§impl Clone for SolarPanel
impl Clone for SolarPanel
source§fn clone(&self) -> SolarPanel
fn clone(&self) -> SolarPanel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SolarPanel
impl Debug for SolarPanel
source§impl Default for SolarPanel
impl Default for SolarPanel
source§impl Message for SolarPanel
impl Message for SolarPanel
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 SolarPanel
impl PartialEq for SolarPanel
source§fn eq(&self, other: &SolarPanel) -> bool
fn eq(&self, other: &SolarPanel) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for SolarPanel
impl StructuralPartialEq for SolarPanel
Auto Trait Implementations§
impl Freeze for SolarPanel
impl RefUnwindSafe for SolarPanel
impl Send for SolarPanel
impl Sync for SolarPanel
impl Unpin for SolarPanel
impl UnwindSafe for SolarPanel
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