#[non_exhaustive]pub struct Configuration {
pub name: String,
pub display_name: String,
pub product: String,
pub license_type: LicenseType,
pub current_billing_info: Option<BillingInfo>,
pub next_billing_info: Option<BillingInfo>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub state: State,
/* private fields */
}Expand description
Configuration for a Google SPLA product
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. name of resource
display_name: StringRequired. User given name.
product: StringRequired. Name field (with URL) of the Product offered for SPLA.
license_type: LicenseTypeRequired. LicenseType to be applied for billing
current_billing_info: Option<BillingInfo>Required. Billing information applicable till end of the current month.
next_billing_info: Option<BillingInfo>Required. Billing information applicable for next month.
create_time: Option<Timestamp>Output only. [Output only] Create time stamp
update_time: Option<Timestamp>Output only. [Output only] Update time stamp
labels: HashMap<String, String>Optional. Labels as key value pairs
state: StateOutput only. State of the configuration.
Implementations§
Source§impl Configuration
impl Configuration
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_product<T: Into<String>>(self, v: T) -> Self
pub fn set_product<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_license_type<T: Into<LicenseType>>(self, v: T) -> Self
pub fn set_license_type<T: Into<LicenseType>>(self, v: T) -> Self
Sets the value of license_type.
§Example
use google_cloud_licensemanager_v1::model::LicenseType;
let x0 = Configuration::new().set_license_type(LicenseType::PerMonthPerUser);
let x1 = Configuration::new().set_license_type(LicenseType::BringYourOwnLicense);Sourcepub fn set_current_billing_info<T>(self, v: T) -> Selfwhere
T: Into<BillingInfo>,
pub fn set_current_billing_info<T>(self, v: T) -> Selfwhere
T: Into<BillingInfo>,
Sets the value of current_billing_info.
§Example
use google_cloud_licensemanager_v1::model::BillingInfo;
let x = Configuration::new().set_current_billing_info(BillingInfo::default()/* use setters */);Sourcepub fn set_or_clear_current_billing_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<BillingInfo>,
pub fn set_or_clear_current_billing_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<BillingInfo>,
Sets or clears the value of current_billing_info.
§Example
use google_cloud_licensemanager_v1::model::BillingInfo;
let x = Configuration::new().set_or_clear_current_billing_info(Some(BillingInfo::default()/* use setters */));
let x = Configuration::new().set_or_clear_current_billing_info(None::<BillingInfo>);Sourcepub fn set_next_billing_info<T>(self, v: T) -> Selfwhere
T: Into<BillingInfo>,
pub fn set_next_billing_info<T>(self, v: T) -> Selfwhere
T: Into<BillingInfo>,
Sets the value of next_billing_info.
§Example
use google_cloud_licensemanager_v1::model::BillingInfo;
let x = Configuration::new().set_next_billing_info(BillingInfo::default()/* use setters */);Sourcepub fn set_or_clear_next_billing_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<BillingInfo>,
pub fn set_or_clear_next_billing_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<BillingInfo>,
Sets or clears the value of next_billing_info.
§Example
use google_cloud_licensemanager_v1::model::BillingInfo;
let x = Configuration::new().set_or_clear_next_billing_info(Some(BillingInfo::default()/* use setters */));
let x = Configuration::new().set_or_clear_next_billing_info(None::<BillingInfo>);Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = Configuration::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = Configuration::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Configuration::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = Configuration::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = Configuration::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = Configuration::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Configuration
impl Debug for Configuration
Source§impl Default for Configuration
impl Default for Configuration
Source§fn default() -> Configuration
fn default() -> Configuration
Source§impl Message for Configuration
impl Message for Configuration
Source§impl PartialEq for Configuration
impl PartialEq for Configuration
Source§fn eq(&self, other: &Configuration) -> bool
fn eq(&self, other: &Configuration) -> bool
self and other values to be equal, and is used by ==.