pub struct RemoteCodexUsage {
pub primary: Option<RemoteUsageWindow>,
pub secondary: Option<RemoteUsageWindow>,
pub input_tokens: u64,
pub output_tokens: u64,
pub total_tokens: u64,
pub context_window: Option<u64>,
pub at: Option<String>,
}Expand description
Codex’s reading, out of its own session rollout.
Fields§
§primary: Option<RemoteUsageWindow>Codex names its windows rather than describing them, so the names are carried through rather than guessed at.
secondary: Option<RemoteUsageWindow>§input_tokens: u64§output_tokens: u64§total_tokens: u64§context_window: Option<u64>The model’s context window, when the rollout named one — what the “how full is this session” bar is drawn against.
at: Option<String>When the reading was taken. A rollout can be days old, and a usage bar with no date is a bar that quietly stops being true.
Trait Implementations§
Source§impl Clone for RemoteCodexUsage
impl Clone for RemoteCodexUsage
Source§fn clone(&self) -> RemoteCodexUsage
fn clone(&self) -> RemoteCodexUsage
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 RemoteCodexUsage
impl Debug for RemoteCodexUsage
Source§impl Default for RemoteCodexUsage
impl Default for RemoteCodexUsage
Source§fn default() -> RemoteCodexUsage
fn default() -> RemoteCodexUsage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RemoteCodexUsage
impl<'de> Deserialize<'de> for RemoteCodexUsage
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
Source§impl PartialEq for RemoteCodexUsage
impl PartialEq for RemoteCodexUsage
Source§impl Serialize for RemoteCodexUsage
impl Serialize for RemoteCodexUsage
impl StructuralPartialEq for RemoteCodexUsage
Auto Trait Implementations§
impl Freeze for RemoteCodexUsage
impl RefUnwindSafe for RemoteCodexUsage
impl Send for RemoteCodexUsage
impl Sync for RemoteCodexUsage
impl Unpin for RemoteCodexUsage
impl UnsafeUnpin for RemoteCodexUsage
impl UnwindSafe for RemoteCodexUsage
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