Struct google_api_proto::google::maps::solar::v1::RoofSegmentSizeAndSunshineStats
source · pub struct RoofSegmentSizeAndSunshineStats {
pub pitch_degrees: Option<f32>,
pub azimuth_degrees: Option<f32>,
pub stats: Option<SizeAndSunshineStats>,
pub center: Option<LatLng>,
pub bounding_box: Option<LatLngBox>,
pub plane_height_at_center_meters: Option<f32>,
}
Expand description
Information about the size and sunniness quantiles of a roof segment.
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).
stats: Option<SizeAndSunshineStats>
Total size and sunlight quantiles for the roof segment.
center: Option<LatLng>
A point near the center of the roof segment.
bounding_box: Option<LatLngBox>
The bounding box of the roof segment.
plane_height_at_center_meters: Option<f32>
The height of the roof segment plane, in meters above sea level,
at the point designated by center
. Together with the pitch,
azimuth, and center location, this fully defines the roof segment
plane.
Implementations§
source§impl RoofSegmentSizeAndSunshineStats
impl RoofSegmentSizeAndSunshineStats
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 plane_height_at_center_meters(&self) -> f32
pub fn plane_height_at_center_meters(&self) -> f32
Returns the value of plane_height_at_center_meters
, or the default value if plane_height_at_center_meters
is unset.
Trait Implementations§
source§impl Clone for RoofSegmentSizeAndSunshineStats
impl Clone for RoofSegmentSizeAndSunshineStats
source§fn clone(&self) -> RoofSegmentSizeAndSunshineStats
fn clone(&self) -> RoofSegmentSizeAndSunshineStats
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for RoofSegmentSizeAndSunshineStats
impl Message for RoofSegmentSizeAndSunshineStats
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 RoofSegmentSizeAndSunshineStats
impl PartialEq for RoofSegmentSizeAndSunshineStats
source§fn eq(&self, other: &RoofSegmentSizeAndSunshineStats) -> bool
fn eq(&self, other: &RoofSegmentSizeAndSunshineStats) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RoofSegmentSizeAndSunshineStats
Auto Trait Implementations§
impl Freeze for RoofSegmentSizeAndSunshineStats
impl RefUnwindSafe for RoofSegmentSizeAndSunshineStats
impl Send for RoofSegmentSizeAndSunshineStats
impl Sync for RoofSegmentSizeAndSunshineStats
impl Unpin for RoofSegmentSizeAndSunshineStats
impl UnwindSafe for RoofSegmentSizeAndSunshineStats
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