Struct google_recommender1_beta1::api::GoogleCloudRecommenderV1beta1SustainabilityProjection
source · pub struct GoogleCloudRecommenderV1beta1SustainabilityProjection {
pub duration: Option<Duration>,
pub kg_co2e: Option<f64>,
}
Expand description
Contains metadata about how much sustainability a recommendation can save or incur.
This type is not used in any activity, and only used as part of another schema.
Fields§
§duration: Option<Duration>
Duration for which this sustanability applies.
kg_co2e: Option<f64>
Carbon Footprint generated in kg of CO2 equivalent. Chose kg_c_o2e so that the name renders correctly in camelCase (kgCO2e).
Trait Implementations§
source§impl Clone for GoogleCloudRecommenderV1beta1SustainabilityProjection
impl Clone for GoogleCloudRecommenderV1beta1SustainabilityProjection
source§fn clone(&self) -> GoogleCloudRecommenderV1beta1SustainabilityProjection
fn clone(&self) -> GoogleCloudRecommenderV1beta1SustainabilityProjection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for GoogleCloudRecommenderV1beta1SustainabilityProjection
impl Default for GoogleCloudRecommenderV1beta1SustainabilityProjection
source§fn default() -> GoogleCloudRecommenderV1beta1SustainabilityProjection
fn default() -> GoogleCloudRecommenderV1beta1SustainabilityProjection
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GoogleCloudRecommenderV1beta1SustainabilityProjection
impl<'de> Deserialize<'de> for GoogleCloudRecommenderV1beta1SustainabilityProjection
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GoogleCloudRecommenderV1beta1SustainabilityProjection
Auto Trait Implementations§
impl RefUnwindSafe for GoogleCloudRecommenderV1beta1SustainabilityProjection
impl Send for GoogleCloudRecommenderV1beta1SustainabilityProjection
impl Sync for GoogleCloudRecommenderV1beta1SustainabilityProjection
impl Unpin for GoogleCloudRecommenderV1beta1SustainabilityProjection
impl UnwindSafe for GoogleCloudRecommenderV1beta1SustainabilityProjection
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
Mutably borrows from an owned value. Read more