pub struct SourceEstimate {
pub source: ContentSource,
pub text_bytes: usize,
pub images: u64,
pub tokens: u64,
}Expand description
One source’s heuristic allocation, not provider-reported category usage.
Fields§
§source: ContentSource§text_bytes: usize§images: u64§tokens: u64Trait Implementations§
Source§impl Clone for SourceEstimate
impl Clone for SourceEstimate
Source§fn clone(&self) -> SourceEstimate
fn clone(&self) -> SourceEstimate
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 SourceEstimate
impl Debug for SourceEstimate
Source§impl<'de> Deserialize<'de> for SourceEstimate
impl<'de> Deserialize<'de> for SourceEstimate
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
impl Eq for SourceEstimate
Source§impl JsonSchema for SourceEstimate
impl JsonSchema for SourceEstimate
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SourceEstimate
impl PartialEq for SourceEstimate
Source§fn eq(&self, other: &SourceEstimate) -> bool
fn eq(&self, other: &SourceEstimate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceEstimate
impl Serialize for SourceEstimate
impl StructuralPartialEq for SourceEstimate
Auto Trait Implementations§
impl Freeze for SourceEstimate
impl RefUnwindSafe for SourceEstimate
impl Send for SourceEstimate
impl Sync for SourceEstimate
impl Unpin for SourceEstimate
impl UnsafeUnpin for SourceEstimate
impl UnwindSafe for SourceEstimate
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