pub struct PromptTokenDetails {
pub modality: String,
pub token_count: i32,
}
Expand description
Details about prompt tokens by modality
Fields§
§modality: String
The modality (e.g., “TEXT”)
token_count: i32
Token count for this modality
Trait Implementations§
Source§impl Clone for PromptTokenDetails
impl Clone for PromptTokenDetails
Source§fn clone(&self) -> PromptTokenDetails
fn clone(&self) -> PromptTokenDetails
Returns a duplicate 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 PromptTokenDetails
impl Debug for PromptTokenDetails
Source§impl<'de> Deserialize<'de> for PromptTokenDetails
impl<'de> Deserialize<'de> for PromptTokenDetails
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
Auto Trait Implementations§
impl Freeze for PromptTokenDetails
impl RefUnwindSafe for PromptTokenDetails
impl Send for PromptTokenDetails
impl Sync for PromptTokenDetails
impl Unpin for PromptTokenDetails
impl UnwindSafe for PromptTokenDetails
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