[−][src]Struct google_servicecontrol1::QuotaOperation
Represents information regarding a quota operation.
This type is not used in any activity, and only used as part of another schema.
Fields
quota_mode: Option<String>
Quota mode for this operation.
consumer_id: Option<String>
Identity of the consumer for whom this quota operation is being performed.
This can be in one of the following formats: project:<project_id>, project_number:<project_number>, api_key:<api_key>.
quota_metrics: Option<Vec<MetricValueSet>>
Represents information about this operation. Each MetricValueSet corresponds to a metric defined in the service configuration. The data type used in the MetricValueSet must agree with the data type specified in the metric definition.
Within a single operation, it is not allowed to have more than one MetricValue instances that have the same metric names and identical label value combinations. If a request has such duplicated MetricValue instances, the entire request is rejected with an invalid argument error.
This field is mutually exclusive with method_name.
method_name: Option<String>
Fully qualified name of the API method for which this quota operation is requested. This name is used for matching quota rules or metric rules and billing status rules defined in service configuration.
This field should not be set if any of the following is true: (1) the quota operation is performed on non-API resources. (2) quota_metrics is set because the caller is doing quota override.
Example of an RPC method name: google.example.library.v1.LibraryService.CreateShelf
labels: Option<HashMap<String, String>>
Labels describing the operation.
operation_id: Option<String>
Identity of the operation. This is expected to be unique within the scope of the service that generated the operation, and guarantees idempotency in case of retries.
In order to ensure best performance and latency in the Quota backends, operation_ids are optimally associated with time, so that related operations can be accessed fast in storage. For this reason, the recommended token for services that intend to operate at a high QPS is Unix time in nanos + UUID
Trait Implementations
impl Clone for QuotaOperation
[src]
fn clone(&self) -> QuotaOperation
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for QuotaOperation
[src]
impl Default for QuotaOperation
[src]
fn default() -> QuotaOperation
[src]
impl<'de> Deserialize<'de> for QuotaOperation
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Part for QuotaOperation
[src]
impl Serialize for QuotaOperation
[src]
Auto Trait Implementations
impl RefUnwindSafe for QuotaOperation
impl Send for QuotaOperation
impl Sync for QuotaOperation
impl Unpin for QuotaOperation
impl UnwindSafe for QuotaOperation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,