#[non_exhaustive]pub struct QuotaExceededInfo {
pub dimensions: HashMap<String, String>,
pub future_limit: Option<f64>,
pub limit: Option<f64>,
pub limit_name: Option<String>,
pub metric_name: Option<String>,
pub rollout_status: Option<RolloutStatus>,
/* private fields */
}Available on crate features
addresses or autoscalers or backend-buckets or backend-services or cross-site-networks or disks or external-vpn-gateways or firewall-policies or firewalls or forwarding-rules or future-reservations or global-addresses or global-forwarding-rules or global-network-endpoint-groups or global-operations or global-organization-operations or global-public-delegated-prefixes or health-checks or http-health-checks or https-health-checks or images or instance-group-manager-resize-requests or instance-group-managers or instance-groups or instance-settings or instance-templates or instances or instant-snapshots or interconnect-attachment-groups or interconnect-attachments or interconnect-groups or interconnects or licenses or machine-images or network-attachments or network-edge-security-services or network-endpoint-groups or network-firewall-policies or networks or node-groups or node-templates or organization-security-policies or packet-mirrorings or preview-features or projects or public-advertised-prefixes or public-delegated-prefixes or region-autoscalers or region-backend-services or region-commitments or region-disks or region-health-check-services or region-health-checks or region-instance-group-managers or region-instance-groups or region-instance-templates or region-instances or region-instant-snapshots or region-network-endpoint-groups or region-network-firewall-policies or region-notification-endpoints or region-operations or region-security-policies or region-ssl-certificates or region-ssl-policies or region-target-http-proxies or region-target-https-proxies or region-target-tcp-proxies or region-url-maps or reservation-blocks or reservation-slots or reservation-sub-blocks or reservations or resource-policies or routers or routes or security-policies or service-attachments or snapshot-settings or snapshots or ssl-certificates or ssl-policies or storage-pools or subnetworks or target-grpc-proxies or target-http-proxies or target-https-proxies or target-instances or target-pools or target-ssl-proxies or target-tcp-proxies or target-vpn-gateways or url-maps or vpn-gateways or vpn-tunnels or wire-groups or zone-operations only.Expand description
Additional details for quota exceeded error for resource quota.
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.dimensions: HashMap<String, String>The map holding related quota dimensions.
future_limit: Option<f64>Future quota limit being rolled out. The limit’s unit depends on the quota type or metric.
limit: Option<f64>Current effective quota limit. The limit’s unit depends on the quota type or metric.
limit_name: Option<String>The name of the quota limit.
metric_name: Option<String>The Compute Engine quota metric name.
rollout_status: Option<RolloutStatus>Rollout status of the future quota limit.
Implementations§
Source§impl QuotaExceededInfo
impl QuotaExceededInfo
pub fn new() -> Self
Sourcepub fn set_dimensions<T, K, V>(self, v: T) -> Self
pub fn set_dimensions<T, K, V>(self, v: T) -> Self
Sets the value of dimensions.
§Example
ⓘ
let x = QuotaExceededInfo::new().set_dimensions([
("key0", "abc"),
("key1", "xyz"),
]);Sourcepub fn set_future_limit<T>(self, v: T) -> Self
pub fn set_future_limit<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_future_limit<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_future_limit<T>(self, v: Option<T>) -> Self
Sets or clears the value of future_limit.
§Example
ⓘ
let x = QuotaExceededInfo::new().set_or_clear_future_limit(Some(42.0));
let x = QuotaExceededInfo::new().set_or_clear_future_limit(None::<f32>);Sourcepub fn set_or_clear_limit<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_limit<T>(self, v: Option<T>) -> Self
Sourcepub fn set_limit_name<T>(self, v: T) -> Self
pub fn set_limit_name<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_limit_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_limit_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of limit_name.
§Example
ⓘ
let x = QuotaExceededInfo::new().set_or_clear_limit_name(Some("example"));
let x = QuotaExceededInfo::new().set_or_clear_limit_name(None::<String>);Sourcepub fn set_metric_name<T>(self, v: T) -> Self
pub fn set_metric_name<T>(self, v: T) -> Self
Sets the value of metric_name.
§Example
ⓘ
let x = QuotaExceededInfo::new().set_metric_name("example");Sourcepub fn set_or_clear_metric_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_metric_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of metric_name.
§Example
ⓘ
let x = QuotaExceededInfo::new().set_or_clear_metric_name(Some("example"));
let x = QuotaExceededInfo::new().set_or_clear_metric_name(None::<String>);Sourcepub fn set_rollout_status<T>(self, v: T) -> Selfwhere
T: Into<RolloutStatus>,
pub fn set_rollout_status<T>(self, v: T) -> Selfwhere
T: Into<RolloutStatus>,
Sets the value of rollout_status.
§Example
ⓘ
use google_cloud_compute_v1::model::quota_exceeded_info::RolloutStatus;
let x0 = QuotaExceededInfo::new().set_rollout_status(RolloutStatus::Unspecified);Sourcepub fn set_or_clear_rollout_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<RolloutStatus>,
pub fn set_or_clear_rollout_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<RolloutStatus>,
Sets or clears the value of rollout_status.
§Example
ⓘ
use google_cloud_compute_v1::model::quota_exceeded_info::RolloutStatus;
let x0 = QuotaExceededInfo::new().set_or_clear_rollout_status(Some(RolloutStatus::Unspecified));
let x_none = QuotaExceededInfo::new().set_or_clear_rollout_status(None::<RolloutStatus>);Trait Implementations§
Source§impl Clone for QuotaExceededInfo
impl Clone for QuotaExceededInfo
Source§fn clone(&self) -> QuotaExceededInfo
fn clone(&self) -> QuotaExceededInfo
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 QuotaExceededInfo
impl Debug for QuotaExceededInfo
Source§impl Default for QuotaExceededInfo
impl Default for QuotaExceededInfo
Source§fn default() -> QuotaExceededInfo
fn default() -> QuotaExceededInfo
Returns the “default value” for a type. Read more
Source§impl Message for QuotaExceededInfo
impl Message for QuotaExceededInfo
Source§impl PartialEq for QuotaExceededInfo
impl PartialEq for QuotaExceededInfo
impl StructuralPartialEq for QuotaExceededInfo
Auto Trait Implementations§
impl Freeze for QuotaExceededInfo
impl RefUnwindSafe for QuotaExceededInfo
impl Send for QuotaExceededInfo
impl Sync for QuotaExceededInfo
impl Unpin for QuotaExceededInfo
impl UnwindSafe for QuotaExceededInfo
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