pub enum Modality {
Image,
Audio,
Video,
File,
}Expand description
Modality of a media attachment on a multimodal message.
B7 (v0.22.4): the common vocabulary used by the provider-neutral
MediaPart view; each chat backend maps these onto its own wire blocks
(image_url / input_audio / input_video / file, Anthropic
image/document, Gemini inline_data/file_data).
Variants§
Image
Still image (vision input).
Audio
Audio clip (e.g. voice input / transcription inside a chat turn).
Video
Video clip.
File
Attached file/document (e.g. PDF).
Trait Implementations§
impl Copy for Modality
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 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