pub struct ModalityTokens {
pub modality: Option<ResponseModality>,
pub tokens: Option<u32>,
}Expand description
Token count by modality
Fields§
§modality: Option<ResponseModality>§tokens: Option<u32>Trait Implementations§
Source§impl Clone for ModalityTokens
impl Clone for ModalityTokens
Source§fn clone(&self) -> ModalityTokens
fn clone(&self) -> ModalityTokens
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 ModalityTokens
impl Debug for ModalityTokens
Source§impl<'de> Deserialize<'de> for ModalityTokens
impl<'de> Deserialize<'de> for ModalityTokens
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 ModalityTokens
impl RefUnwindSafe for ModalityTokens
impl Send for ModalityTokens
impl Sync for ModalityTokens
impl Unpin for ModalityTokens
impl UnwindSafe for ModalityTokens
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