pub struct TextMeasurement {
pub tokenizer: String,
pub tokens: u64,
}Expand description
A tokenizer-specific count of a complete rendered document, excluding provider message framing. Distinct from a runtime request estimate.
Fields§
§tokenizer: String§tokens: u64Trait Implementations§
Source§impl Clone for TextMeasurement
impl Clone for TextMeasurement
Source§fn clone(&self) -> TextMeasurement
fn clone(&self) -> TextMeasurement
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 TextMeasurement
impl Debug for TextMeasurement
impl Eq for TextMeasurement
Source§impl PartialEq for TextMeasurement
impl PartialEq for TextMeasurement
Source§fn eq(&self, other: &TextMeasurement) -> bool
fn eq(&self, other: &TextMeasurement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextMeasurement
impl Serialize for TextMeasurement
impl StructuralPartialEq for TextMeasurement
Auto Trait Implementations§
impl Freeze for TextMeasurement
impl RefUnwindSafe for TextMeasurement
impl Send for TextMeasurement
impl Sync for TextMeasurement
impl Unpin for TextMeasurement
impl UnsafeUnpin for TextMeasurement
impl UnwindSafe for TextMeasurement
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