Struct spin_sdk::llm::EmbeddingsUsage
source · #[repr(C)]pub struct EmbeddingsUsage {
pub prompt_token_count: u32,
}
Expand description
Usage related to an embeddings generation request
Fields§
§prompt_token_count: u32
Number of tokens in the prompt
Trait Implementations§
source§impl Clone for EmbeddingsUsage
impl Clone for EmbeddingsUsage
source§fn clone(&self) -> EmbeddingsUsage
fn clone(&self) -> EmbeddingsUsage
Returns a copy of the value. Read more
1.0.0 · 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 EmbeddingsUsage
impl Debug for EmbeddingsUsage
impl Copy for EmbeddingsUsage
Auto Trait Implementations§
impl RefUnwindSafe for EmbeddingsUsage
impl Send for EmbeddingsUsage
impl Sync for EmbeddingsUsage
impl Unpin for EmbeddingsUsage
impl UnwindSafe for EmbeddingsUsage
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