#[non_exhaustive]pub struct Tier {
pub tier: String,
pub ram: i64,
pub kind: String,
pub disk_quota: i64,
pub region: Vec<String>,
/* private fields */
}
Expand description
A Google Cloud SQL service tier 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.tier: String
An identifier for the machine type, for example, db-custom-1-3840
. For
related information, see Pricing.
ram: i64
The maximum RAM usage of this tier in bytes.
kind: String
This is always sql#tier
.
disk_quota: i64
The maximum disk size of this tier in bytes.
region: Vec<String>
The applicable regions for this tier.
Implementations§
Source§impl Tier
impl Tier
pub fn new() -> Self
Sourcepub fn set_disk_quota<T: Into<i64>>(self, v: T) -> Self
pub fn set_disk_quota<T: Into<i64>>(self, v: T) -> Self
Sets the value of disk_quota.
Sourcepub fn set_region<T, V>(self, v: T) -> Self
pub fn set_region<T, V>(self, v: T) -> Self
Sets the value of region.
Trait Implementations§
impl StructuralPartialEq for Tier
Auto Trait Implementations§
impl Freeze for Tier
impl RefUnwindSafe for Tier
impl Send for Tier
impl Sync for Tier
impl Unpin for Tier
impl UnwindSafe for Tier
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