pub struct LayoutUsage {
pub prompt_tokens: Option<f64>,
pub completion_tokens: Option<f64>,
pub prompt_tokens_details: Option<LayoutPromptTokensDetails>,
pub total_tokens: Option<i64>,
}Expand description
Token usage returned by layout parsing.
Fields§
§prompt_tokens: Option<f64>Prompt token count.
completion_tokens: Option<f64>Completion token count.
prompt_tokens_details: Option<LayoutPromptTokensDetails>Cached-token details.
total_tokens: Option<i64>Total token count.
Trait Implementations§
Source§impl Clone for LayoutUsage
impl Clone for LayoutUsage
Source§fn clone(&self) -> LayoutUsage
fn clone(&self) -> LayoutUsage
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 LayoutUsage
impl Debug for LayoutUsage
Source§impl<'de> Deserialize<'de> for LayoutUsage
impl<'de> Deserialize<'de> for LayoutUsage
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 LayoutUsage
impl PartialEq for LayoutUsage
Source§impl Serialize for LayoutUsage
impl Serialize for LayoutUsage
impl StructuralPartialEq for LayoutUsage
Auto Trait Implementations§
impl Freeze for LayoutUsage
impl RefUnwindSafe for LayoutUsage
impl Send for LayoutUsage
impl Sync for LayoutUsage
impl Unpin for LayoutUsage
impl UnsafeUnpin for LayoutUsage
impl UnwindSafe for LayoutUsage
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