pub struct ModelBillingPromo {
pub discount_percent: Option<f64>,
pub ends_at: Option<String>,
pub id: Option<String>,
pub message: Option<String>,
pub show_banner: Option<bool>,
}Expand description
Active server-driven promotion for a model, including its discount and optional expiry.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§discount_percent: Option<f64>Percentage discount (0-100) applied while the promotion is active. May be fractional.
ends_at: Option<String>UTC ISO 8601 timestamp marking when the promotion ends. Optional: an open-ended promotion omits this field. When present, the API only surfaces a promo whose expiry parses and is in the future, so consumers should treat a past value as expired.
id: Option<String>Stable identifier for the promotion campaign.
message: Option<String>Human-readable promotion message. Does not include the expiry timestamp; consumers may format endsAt and append it when present.
Whether the service asked hosts to give this promotion a prominent surface, such as a dedicated banner, in addition to listing it with the model. true requests that surface and false asks for the model list only. Absent means the service expressed no preference — for example a response that predates the field — so hosts should apply their own default rather than read it as false.
Trait Implementations§
Source§impl Clone for ModelBillingPromo
impl Clone for ModelBillingPromo
Source§fn clone(&self) -> ModelBillingPromo
fn clone(&self) -> ModelBillingPromo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more