pub enum Modality {
ModalityUnspecified,
Text,
Image,
Audio,
Video,
}
Expand description
Core primitive types for building requests and parsing responses Content modality type - specifies the format of model output
Variants§
ModalityUnspecified
Default value.
Text
Indicates the model should return text.
Image
Indicates the model should return images.
Audio
Indicates the model should return audio.
Video
Indicates the model should return video.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Modality
impl<'de> Deserialize<'de> for Modality
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 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 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