#[non_exhaustive]pub struct LicenseResourceRequirements {
pub min_guest_cpu_count: Option<i32>,
pub min_memory_mb: Option<i32>,
/* private fields */
}Available on crate feature
licenses only.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.min_guest_cpu_count: Option<i32>[Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus required to use the Instance.
min_memory_mb: Option<i32>[Input Only] Deprecated. This field no longer reflects the minimum memory required to use the Instance.
Implementations§
Source§impl LicenseResourceRequirements
impl LicenseResourceRequirements
pub fn new() -> Self
Sourcepub fn set_min_guest_cpu_count<T>(self, v: T) -> Self
pub fn set_min_guest_cpu_count<T>(self, v: T) -> Self
Sets the value of min_guest_cpu_count.
§Example
ⓘ
let x = LicenseResourceRequirements::new().set_min_guest_cpu_count(42);Sourcepub fn set_or_clear_min_guest_cpu_count<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_min_guest_cpu_count<T>(self, v: Option<T>) -> Self
Sets or clears the value of min_guest_cpu_count.
§Example
ⓘ
let x = LicenseResourceRequirements::new().set_or_clear_min_guest_cpu_count(Some(42));
let x = LicenseResourceRequirements::new().set_or_clear_min_guest_cpu_count(None::<i32>);Sourcepub fn set_min_memory_mb<T>(self, v: T) -> Self
pub fn set_min_memory_mb<T>(self, v: T) -> Self
Sets the value of min_memory_mb.
§Example
ⓘ
let x = LicenseResourceRequirements::new().set_min_memory_mb(42);Sourcepub fn set_or_clear_min_memory_mb<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_min_memory_mb<T>(self, v: Option<T>) -> Self
Sets or clears the value of min_memory_mb.
§Example
ⓘ
let x = LicenseResourceRequirements::new().set_or_clear_min_memory_mb(Some(42));
let x = LicenseResourceRequirements::new().set_or_clear_min_memory_mb(None::<i32>);Trait Implementations§
Source§impl Clone for LicenseResourceRequirements
impl Clone for LicenseResourceRequirements
Source§fn clone(&self) -> LicenseResourceRequirements
fn clone(&self) -> LicenseResourceRequirements
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 LicenseResourceRequirements
impl Debug for LicenseResourceRequirements
Source§impl Default for LicenseResourceRequirements
impl Default for LicenseResourceRequirements
Source§fn default() -> LicenseResourceRequirements
fn default() -> LicenseResourceRequirements
Returns the “default value” for a type. Read more
impl StructuralPartialEq for LicenseResourceRequirements
Auto Trait Implementations§
impl Freeze for LicenseResourceRequirements
impl RefUnwindSafe for LicenseResourceRequirements
impl Send for LicenseResourceRequirements
impl Sync for LicenseResourceRequirements
impl Unpin for LicenseResourceRequirements
impl UnwindSafe for LicenseResourceRequirements
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