Struct google_api_proto::google::maps::solar::v1::RoofSegmentSummary
source · pub struct RoofSegmentSummary {
pub pitch_degrees: Option<f32>,
pub azimuth_degrees: Option<f32>,
pub panels_count: i32,
pub yearly_energy_dc_kwh: f32,
pub segment_index: Option<i32>,
}
Expand description
Information about a roof segment on the building, with some number of panels placed on it.
Fields§
§pitch_degrees: Option<f32>
Angle of the roof segment relative to the theoretical ground plane. 0 = parallel to the ground, 90 = perpendicular to the ground.
azimuth_degrees: Option<f32>
Compass direction the roof segment is pointing in. 0 = North, 90 =
East, 180 = South. For a “flat” roof segment (pitch_degrees
very
near 0), azimuth is not well defined, so for consistency, we define it
arbitrarily to be 0 (North).
panels_count: i32
The total number of panels on this segment.
yearly_energy_dc_kwh: f32
How much sunlight energy this part of the layout captures over the course of a year, in DC kWh, assuming the panels described above.
segment_index: Option<i32>
Index in [roof_segment_stats]
[google.maps.solar.v1.SolarPotential.roof_segment_stats]
of the corresponding RoofSegmentSizeAndSunshineStats
.
Implementations§
source§impl RoofSegmentSummary
impl RoofSegmentSummary
sourcepub fn pitch_degrees(&self) -> f32
pub fn pitch_degrees(&self) -> f32
Returns the value of pitch_degrees
, or the default value if pitch_degrees
is unset.
sourcepub fn azimuth_degrees(&self) -> f32
pub fn azimuth_degrees(&self) -> f32
Returns the value of azimuth_degrees
, or the default value if azimuth_degrees
is unset.
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 RoofSegmentSummary
impl Clone for RoofSegmentSummary
source§fn clone(&self) -> RoofSegmentSummary
fn clone(&self) -> RoofSegmentSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RoofSegmentSummary
impl Debug for RoofSegmentSummary
source§impl Default for RoofSegmentSummary
impl Default for RoofSegmentSummary
source§impl Message for RoofSegmentSummary
impl Message for RoofSegmentSummary
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 RoofSegmentSummary
impl PartialEq for RoofSegmentSummary
source§fn eq(&self, other: &RoofSegmentSummary) -> bool
fn eq(&self, other: &RoofSegmentSummary) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for RoofSegmentSummary
impl StructuralPartialEq for RoofSegmentSummary
Auto Trait Implementations§
impl Freeze for RoofSegmentSummary
impl RefUnwindSafe for RoofSegmentSummary
impl Send for RoofSegmentSummary
impl Sync for RoofSegmentSummary
impl Unpin for RoofSegmentSummary
impl UnwindSafe for RoofSegmentSummary
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