pub struct GoogleCloudApigeeV1RatePlan {
Show 19 fields pub apiproduct: Option<String>, pub billing_period: Option<String>, pub consumption_pricing_rates: Option<Vec<GoogleCloudApigeeV1RateRange>>, pub consumption_pricing_type: Option<String>, pub created_at: Option<i64>, pub currency_code: Option<String>, pub description: Option<String>, pub display_name: Option<String>, pub end_time: Option<i64>, pub fixed_fee_frequency: Option<i32>, pub fixed_recurring_fee: Option<GoogleTypeMoney>, pub last_modified_at: Option<i64>, pub name: Option<String>, pub payment_funding_model: Option<String>, pub revenue_share_rates: Option<Vec<GoogleCloudApigeeV1RevenueShareRange>>, pub revenue_share_type: Option<String>, pub setup_fee: Option<GoogleTypeMoney>, pub start_time: Option<i64>, pub state: Option<String>,
}
Expand description

Rate plan details.

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§apiproduct: Option<String>

Name of the API product that the rate plan is associated with.

§billing_period: Option<String>

Frequency at which the customer will be billed.

§consumption_pricing_rates: Option<Vec<GoogleCloudApigeeV1RateRange>>

API call volume ranges and the fees charged when the total number of API calls is within a given range. The method used to calculate the final fee depends on the selected pricing model. For example, if the pricing model is STAIRSTEP and the ranges are defined as follows: { "start": 1, "end": 100, "fee": 75 }, { "start": 101, "end": 200, "fee": 100 }, } Then the following fees would be charged based on the total number of API calls (assuming the currency selected is USD): * 1 call costs $75 * 50 calls cost $75 * 150 calls cost $100 The number of API calls cannot exceed 200.

§consumption_pricing_type: Option<String>

Pricing model used for consumption-based charges.

§created_at: Option<i64>

Output only. Time that the rate plan was created in milliseconds since epoch.

§currency_code: Option<String>

Currency to be used for billing. Consists of a three-letter code as defined by the ISO 4217 standard.

§description: Option<String>

Description of the rate plan.

§display_name: Option<String>

Display name of the rate plan.

§end_time: Option<i64>

Time when the rate plan will expire in milliseconds since epoch. Set to 0 or null to indicate that the rate plan should never expire.

§fixed_fee_frequency: Option<i32>

Frequency at which the fixed fee is charged.

§fixed_recurring_fee: Option<GoogleTypeMoney>

Fixed amount that is charged at a defined interval and billed in advance of use of the API product. The fee will be prorated for the first billing period.

§last_modified_at: Option<i64>

Output only. Time the rate plan was last modified in milliseconds since epoch.

§name: Option<String>

Output only. Name of the rate plan.

§payment_funding_model: Option<String>

DEPRECATED: This field is no longer supported and will eventually be removed when Apigee Hybrid 1.5/1.6 is no longer supported. Instead, use the billingType field inside DeveloperMonetizationConfig resource. Flag that specifies the billing account type, prepaid or postpaid.

§revenue_share_rates: Option<Vec<GoogleCloudApigeeV1RevenueShareRange>>

Details of the revenue sharing model.

§revenue_share_type: Option<String>

Method used to calculate the revenue that is shared with developers.

§setup_fee: Option<GoogleTypeMoney>

Initial, one-time fee paid when purchasing the API product.

§start_time: Option<i64>

Time when the rate plan becomes active in milliseconds since epoch.

§state: Option<String>

Current state of the rate plan (draft or published).

Trait Implementations§

source§

impl Clone for GoogleCloudApigeeV1RatePlan

source§

fn clone(&self) -> GoogleCloudApigeeV1RatePlan

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GoogleCloudApigeeV1RatePlan

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for GoogleCloudApigeeV1RatePlan

source§

fn default() -> GoogleCloudApigeeV1RatePlan

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for GoogleCloudApigeeV1RatePlan

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for GoogleCloudApigeeV1RatePlan

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl RequestValue for GoogleCloudApigeeV1RatePlan

source§

impl ResponseResult for GoogleCloudApigeeV1RatePlan

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,