Struct gapi_grpc::google::api::MetricRule[][src]

pub struct MetricRule {
    pub selector: String,
    pub metric_costs: HashMap<String, i64>,
}

Bind API methods to metrics. Binding a method to a metric causes that metric’s configured quota behaviors to apply to the method call.

Fields

selector: String

Selects the methods to which this rule applies.

Refer to [selector][google.api.DocumentationRule.selector] for syntax details.

metric_costs: HashMap<String, i64>

Metrics to update when the selected methods are called, and the associated cost applied to each metric.

The key of the map is the metric name, and the values are the amount increased for the metric against which the quota limits are defined. The value must not be negative.

Trait Implementations

impl Clone for MetricRule[src]

impl Debug for MetricRule[src]

impl Default for MetricRule[src]

impl Message for MetricRule[src]

impl PartialEq<MetricRule> for MetricRule[src]

impl StructuralPartialEq for MetricRule[src]

Auto Trait Implementations

impl RefUnwindSafe for MetricRule

impl Send for MetricRule

impl Sync for MetricRule

impl Unpin for MetricRule

impl UnwindSafe for MetricRule

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]