Struct google_api_proto::google::maps::solar::v1::BuildingInsights
source · pub struct BuildingInsights {
pub name: String,
pub center: Option<LatLng>,
pub bounding_box: Option<LatLngBox>,
pub imagery_date: Option<Date>,
pub imagery_processed_date: Option<Date>,
pub postal_code: String,
pub administrative_area: String,
pub statistical_area: String,
pub region_code: String,
pub solar_potential: Option<SolarPotential>,
pub imagery_quality: i32,
}Expand description
Response message for Solar.FindClosestBuildingInsights.
Information about the location, dimensions, and solar potential of a
building.
Fields§
§name: StringThe resource name for the building, of the format building/<place ID>.
center: Option<LatLng>A point near the center of the building.
bounding_box: Option<LatLngBox>The bounding box of the building.
imagery_date: Option<Date>Date that the underlying imagery was acquired. This is approximate.
imagery_processed_date: Option<Date>When processing was completed on this imagery.
postal_code: StringPostal code (e.g., US zip code) this building is contained by.
administrative_area: StringAdministrative area 1 (e.g., in the US, the state) that contains this building. For example, in the US, the abbreviation might be “MA” or “CA.”
statistical_area: StringStatistical area (e.g., US census tract) this building is in.
region_code: StringRegion code for the country (or region) this building is in.
solar_potential: Option<SolarPotential>Solar potential of the building.
imagery_quality: i32The quality of the imagery used to compute the data for this building.
Implementations§
source§impl BuildingInsights
impl BuildingInsights
sourcepub fn imagery_quality(&self) -> ImageryQuality
pub fn imagery_quality(&self) -> ImageryQuality
Returns the enum value of imagery_quality, or the default if the field is set to an invalid enum value.
sourcepub fn set_imagery_quality(&mut self, value: ImageryQuality)
pub fn set_imagery_quality(&mut self, value: ImageryQuality)
Sets imagery_quality to the provided enum value.
Trait Implementations§
source§impl Clone for BuildingInsights
impl Clone for BuildingInsights
source§fn clone(&self) -> BuildingInsights
fn clone(&self) -> BuildingInsights
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BuildingInsights
impl Debug for BuildingInsights
source§impl Default for BuildingInsights
impl Default for BuildingInsights
source§impl Message for BuildingInsights
impl Message for BuildingInsights
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 BuildingInsights
impl PartialEq for BuildingInsights
source§fn eq(&self, other: &BuildingInsights) -> bool
fn eq(&self, other: &BuildingInsights) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BuildingInsights
Auto Trait Implementations§
impl Freeze for BuildingInsights
impl RefUnwindSafe for BuildingInsights
impl Send for BuildingInsights
impl Sync for BuildingInsights
impl Unpin for BuildingInsights
impl UnwindSafe for BuildingInsights
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