Struct scaleway_api_rs::models::scaleway_period_baremetal_period_v1_period_offer_period_option_offer::ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer
source · pub struct ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer {
pub id: Option<String>,
pub name: Option<String>,
pub enabled: Option<bool>,
pub subscription_period: Option<SubscriptionPeriod>,
pub price: Option<Box<ScalewayBaremetalV1OfferOptionOfferPrice>>,
pub manageable: Option<bool>,
pub os_id: Option<Option<String>>,
}
Fields§
§id: Option<String>
ID of the option
name: Option<String>
Name of the option
enabled: Option<bool>
If true the option is enabled and included by default in the offer If false the option is available for the offer but not included by default
subscription_period: Option<SubscriptionPeriod>
Period of subscription for the offer
price: Option<Box<ScalewayBaremetalV1OfferOptionOfferPrice>>
§manageable: Option<bool>
Boolean to know if option could be managed
os_id: Option<Option<String>>
ID of the OS linked to the option
Implementations§
Trait Implementations§
source§impl Clone for ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer
impl Clone for ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer
source§fn clone(&self) -> ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer
fn clone(&self) -> ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer
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 ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer
impl Default for ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer
source§fn default() -> ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer
fn default() -> ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer
impl<'de> Deserialize<'de> for ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer
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
source§impl PartialEq<ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer> for ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer
impl PartialEq<ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer> for ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer
source§fn eq(
&self,
other: &ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer
) -> bool
fn eq( &self, other: &ScalewayPeriodBaremetalPeriodV1PeriodOfferPeriodOptionOffer ) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.