#[non_exhaustive]pub struct AllocateQuotaResponse {
pub operation_id: String,
pub allocate_errors: Vec<QuotaError>,
pub quota_metrics: Vec<MetricValueSet>,
pub service_config_id: String,
/* private fields */
}Expand description
Response message for the AllocateQuota method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.operation_id: StringThe same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.
allocate_errors: Vec<QuotaError>Indicates the decision of the allocate.
quota_metrics: Vec<MetricValueSet>Quota metrics to indicate the result of allocation. Depending on the request, one or more of the following metrics will be included:
-
Per quota group or per quota metric incremental usage will be specified using the following delta metric : “serviceruntime.googleapis.com/api/consumer/quota_used_count”
-
The quota limit reached condition will be specified using the following boolean metric : “serviceruntime.googleapis.com/quota/exceeded”
service_config_id: StringID of the actual config used to process the request.
Implementations§
Source§impl AllocateQuotaResponse
impl AllocateQuotaResponse
pub fn new() -> Self
Sourcepub fn set_operation_id<T: Into<String>>(self, v: T) -> Self
pub fn set_operation_id<T: Into<String>>(self, v: T) -> Self
Sets the value of operation_id.
Sourcepub fn set_allocate_errors<T, V>(self, v: T) -> Self
pub fn set_allocate_errors<T, V>(self, v: T) -> Self
Sets the value of allocate_errors.
Sourcepub fn set_quota_metrics<T, V>(self, v: T) -> Self
pub fn set_quota_metrics<T, V>(self, v: T) -> Self
Sets the value of quota_metrics.
Sourcepub fn set_service_config_id<T: Into<String>>(self, v: T) -> Self
pub fn set_service_config_id<T: Into<String>>(self, v: T) -> Self
Sets the value of service_config_id.
Trait Implementations§
Source§impl Clone for AllocateQuotaResponse
impl Clone for AllocateQuotaResponse
Source§fn clone(&self) -> AllocateQuotaResponse
fn clone(&self) -> AllocateQuotaResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more