#[non_exhaustive]pub struct InstanceQuota {
pub name: String,
pub instance_type: String,
pub gcp_service: String,
pub location: String,
pub available_machine_count: i32,
/* private fields */
}Expand description
A resource budget.
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.name: StringOutput only. The name of the instance quota.
instance_type: String👎Deprecated
Instance type. Deprecated: use gcp_service.
gcp_service: StringThe gcp service of the provisioning quota.
location: StringLocation where the quota applies.
available_machine_count: i32Number of machines than can be created for the given location and instance_type.
Implementations§
Source§impl InstanceQuota
impl InstanceQuota
pub fn new() -> Self
Sourcepub fn set_instance_type<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_instance_type<T: Into<String>>(self, v: T) -> Self
Sets the value of instance_type.
§Example
ⓘ
let x = InstanceQuota::new().set_instance_type("example");Sourcepub fn set_gcp_service<T: Into<String>>(self, v: T) -> Self
pub fn set_gcp_service<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_available_machine_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_available_machine_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of available_machine_count.
§Example
ⓘ
let x = InstanceQuota::new().set_available_machine_count(42);Trait Implementations§
Source§impl Clone for InstanceQuota
impl Clone for InstanceQuota
Source§fn clone(&self) -> InstanceQuota
fn clone(&self) -> InstanceQuota
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 InstanceQuota
impl Debug for InstanceQuota
Source§impl Default for InstanceQuota
impl Default for InstanceQuota
Source§fn default() -> InstanceQuota
fn default() -> InstanceQuota
Returns the “default value” for a type. Read more
Source§impl Message for InstanceQuota
impl Message for InstanceQuota
Source§impl PartialEq for InstanceQuota
impl PartialEq for InstanceQuota
impl StructuralPartialEq for InstanceQuota
Auto Trait Implementations§
impl Freeze for InstanceQuota
impl RefUnwindSafe for InstanceQuota
impl Send for InstanceQuota
impl Sync for InstanceQuota
impl Unpin for InstanceQuota
impl UnwindSafe for InstanceQuota
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