pub struct CreateCreditEntitlementRequest {Show 15 fields
pub currency: Option<Currency>,
pub description: Option<String>,
pub expires_after_days: Option<i32>,
pub max_rollover_count: Option<i32>,
pub name: String,
pub overage_behavior: Option<CbbOverageBehavior>,
pub overage_enabled: bool,
pub overage_limit: Option<i64>,
pub precision: i32,
pub price_per_unit: Option<String>,
pub rollover_enabled: bool,
pub rollover_percentage: Option<i32>,
pub rollover_timeframe_count: Option<i32>,
pub rollover_timeframe_interval: Option<TimeInterval>,
pub unit: String,
}Fields§
§currency: Option<Currency>Currency for pricing (required if price_per_unit is set)
description: Option<String>Optional description of the credit entitlement
expires_after_days: Option<i32>Number of days after which credits expire (optional)
max_rollover_count: Option<i32>Maximum number of times credits can be rolled over
name: StringName of the credit entitlement
overage_behavior: Option<CbbOverageBehavior>Controls how overage is handled at billing cycle end. Defaults to forgive_at_reset if not specified.
overage_enabled: boolWhether overage charges are enabled when credits run out
overage_limit: Option<i64>Maximum overage units allowed (optional)
precision: i32Precision for credit amounts (0-10 decimal places)
price_per_unit: Option<String>Price per credit unit
rollover_enabled: boolWhether rollover is enabled for unused credits
rollover_percentage: Option<i32>Percentage of unused credits that can rollover (0-100)
rollover_timeframe_count: Option<i32>Count of timeframe periods for rollover limit
rollover_timeframe_interval: Option<TimeInterval>Interval type for rollover timeframe
unit: StringUnit of measurement for the credit (e.g., "API Calls", "Tokens", "Credits")
Implementations§
Trait Implementations§
Source§impl Clone for CreateCreditEntitlementRequest
impl Clone for CreateCreditEntitlementRequest
Source§fn clone(&self) -> CreateCreditEntitlementRequest
fn clone(&self) -> CreateCreditEntitlementRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more