#[non_exhaustive]pub struct LicenseResourceCommitment {
pub amount: Option<i64>,
pub cores_per_license: Option<String>,
pub license: Option<String>,
/* private fields */
}Available on crate feature
region-commitments only.Expand description
Commitment for a particular license resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.amount: Option<i64>The number of licenses you plan to purchase.
cores_per_license: Option<String>The number of cores per license.
license: Option<String>The applicable license URI.
Implementations§
Source§impl LicenseResourceCommitment
impl LicenseResourceCommitment
pub fn new() -> Self
Sourcepub fn set_amount<T>(self, v: T) -> Self
pub fn set_amount<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_amount<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_amount<T>(self, v: Option<T>) -> Self
Sourcepub fn set_cores_per_license<T>(self, v: T) -> Self
pub fn set_cores_per_license<T>(self, v: T) -> Self
Sets the value of cores_per_license.
§Example
ⓘ
let x = LicenseResourceCommitment::new().set_cores_per_license("example");Sourcepub fn set_or_clear_cores_per_license<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_cores_per_license<T>(self, v: Option<T>) -> Self
Sets or clears the value of cores_per_license.
§Example
ⓘ
let x = LicenseResourceCommitment::new().set_or_clear_cores_per_license(Some("example"));
let x = LicenseResourceCommitment::new().set_or_clear_cores_per_license(None::<String>);Sourcepub fn set_license<T>(self, v: T) -> Self
pub fn set_license<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for LicenseResourceCommitment
impl Clone for LicenseResourceCommitment
Source§fn clone(&self) -> LicenseResourceCommitment
fn clone(&self) -> LicenseResourceCommitment
Returns a duplicate 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 Debug for LicenseResourceCommitment
impl Debug for LicenseResourceCommitment
Source§impl Default for LicenseResourceCommitment
impl Default for LicenseResourceCommitment
Source§fn default() -> LicenseResourceCommitment
fn default() -> LicenseResourceCommitment
Returns the “default value” for a type. Read more
Source§impl Message for LicenseResourceCommitment
impl Message for LicenseResourceCommitment
impl StructuralPartialEq for LicenseResourceCommitment
Auto Trait Implementations§
impl Freeze for LicenseResourceCommitment
impl RefUnwindSafe for LicenseResourceCommitment
impl Send for LicenseResourceCommitment
impl Sync for LicenseResourceCommitment
impl Unpin for LicenseResourceCommitment
impl UnwindSafe for LicenseResourceCommitment
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