pub struct ModelBillingPromo {
pub discount_percent: Option<f64>,
pub ends_at: String,
pub id: Option<String>,
pub message: Option<String>,
}Expand description
Active server-driven promotion for a model, including its discount and 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: StringUTC ISO 8601 timestamp marking when the promotion ends. Always present: the API only surfaces a promo whose expiry parses and is in the future. 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.
Trait Implementations§
Source§impl Clone for ModelBillingPromo
impl Clone for ModelBillingPromo
Source§fn clone(&self) -> ModelBillingPromo
fn clone(&self) -> ModelBillingPromo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelBillingPromo
impl Debug for ModelBillingPromo
Source§impl Default for ModelBillingPromo
impl Default for ModelBillingPromo
Source§fn default() -> ModelBillingPromo
fn default() -> ModelBillingPromo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelBillingPromo
impl<'de> Deserialize<'de> for ModelBillingPromo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModelBillingPromo
impl RefUnwindSafe for ModelBillingPromo
impl Send for ModelBillingPromo
impl Sync for ModelBillingPromo
impl Unpin for ModelBillingPromo
impl UnsafeUnpin for ModelBillingPromo
impl UnwindSafe for ModelBillingPromo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more