pub enum Modality {
Text,
Image,
Audio,
Video,
Document,
Unknown,
}Expand description
Provider modality used for token accounting.
Variants§
Text
Text tokens.
Image
Image tokens.
Audio
Audio tokens.
Video
Video tokens.
Document
Document tokens, billed at image rates.
Unknown
A provider modality unknown to this version.
Trait Implementations§
impl Copy for Modality
impl Eq for Modality
impl StructuralPartialEq for Modality
Auto Trait Implementations§
impl Freeze for Modality
impl RefUnwindSafe for Modality
impl Send for Modality
impl Sync for Modality
impl Unpin for Modality
impl UnsafeUnpin for Modality
impl UnwindSafe for Modality
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