pub struct AutopilotObjectiveCreditLimit {
pub credits: Option<f64>,
pub credits_used: f64,
pub credits_used_nano_aiu: String,
}Expand description
Current per-window credit limit and consumption for an autopilot objective.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§credits: Option<f64>Configured AI-credit cap, when one is set.
credits_used: f64Window consumption in fractional AI credits, for display.
credits_used_nano_aiu: StringExact window consumption in non-negative integer nano-AIU, encoded as a decimal string.
Trait Implementations§
Source§impl Clone for AutopilotObjectiveCreditLimit
impl Clone for AutopilotObjectiveCreditLimit
Source§fn clone(&self) -> AutopilotObjectiveCreditLimit
fn clone(&self) -> AutopilotObjectiveCreditLimit
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 Default for AutopilotObjectiveCreditLimit
impl Default for AutopilotObjectiveCreditLimit
Source§fn default() -> AutopilotObjectiveCreditLimit
fn default() -> AutopilotObjectiveCreditLimit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutopilotObjectiveCreditLimit
impl<'de> Deserialize<'de> for AutopilotObjectiveCreditLimit
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 AutopilotObjectiveCreditLimit
impl RefUnwindSafe for AutopilotObjectiveCreditLimit
impl Send for AutopilotObjectiveCreditLimit
impl Sync for AutopilotObjectiveCreditLimit
impl Unpin for AutopilotObjectiveCreditLimit
impl UnsafeUnpin for AutopilotObjectiveCreditLimit
impl UnwindSafe for AutopilotObjectiveCreditLimit
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