Struct google_api_proto::google::maps::solar::v1::FinancialAnalysis
source · pub struct FinancialAnalysis {
pub monthly_bill: Option<Money>,
pub default_bill: bool,
pub average_kwh_per_month: f32,
pub panel_config_index: Option<i32>,
pub financial_details: Option<FinancialDetails>,
pub leasing_savings: Option<LeasingSavings>,
pub cash_purchase_savings: Option<CashPurchaseSavings>,
pub financed_purchase_savings: Option<FinancedPurchaseSavings>,
}
Expand description
Analysis of the cost and benefits of the optimum solar layout for a particular electric bill size.
Fields§
§monthly_bill: Option<Money>
The monthly electric bill this analysis assumes.
default_bill: bool
Whether this is the bill size selected to be the default bill for the
area this building is in. Exactly one FinancialAnalysis
in
BuildingSolarPotential
should have default_bill
set.
average_kwh_per_month: f32
How much electricity the house uses in an average month, based on the bill size and the local electricity rates.
panel_config_index: Option<i32>
Index in [solar_panel_configs] [google.maps.solar.v1.SolarPotential.solar_panel_configs] of the optimum solar layout for this bill size. This can be -1 indicating that there is no layout. In this case, the remaining submessages will be omitted.
financial_details: Option<FinancialDetails>
Financial information that applies regardless of the financing method used.
leasing_savings: Option<LeasingSavings>
Cost and benefit of leasing the solar panels.
cash_purchase_savings: Option<CashPurchaseSavings>
Cost and benefit of buying the solar panels with cash.
financed_purchase_savings: Option<FinancedPurchaseSavings>
Cost and benefit of buying the solar panels by financing the purchase.
Implementations§
source§impl FinancialAnalysis
impl FinancialAnalysis
sourcepub fn panel_config_index(&self) -> i32
pub fn panel_config_index(&self) -> i32
Returns the value of panel_config_index
, or the default value if panel_config_index
is unset.
Trait Implementations§
source§impl Clone for FinancialAnalysis
impl Clone for FinancialAnalysis
source§fn clone(&self) -> FinancialAnalysis
fn clone(&self) -> FinancialAnalysis
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FinancialAnalysis
impl Debug for FinancialAnalysis
source§impl Default for FinancialAnalysis
impl Default for FinancialAnalysis
source§impl Message for FinancialAnalysis
impl Message for FinancialAnalysis
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 FinancialAnalysis
impl PartialEq for FinancialAnalysis
source§fn eq(&self, other: &FinancialAnalysis) -> bool
fn eq(&self, other: &FinancialAnalysis) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FinancialAnalysis
Auto Trait Implementations§
impl Freeze for FinancialAnalysis
impl RefUnwindSafe for FinancialAnalysis
impl Send for FinancialAnalysis
impl Sync for FinancialAnalysis
impl Unpin for FinancialAnalysis
impl UnwindSafe for FinancialAnalysis
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