pub struct Audio {
pub format: String,
pub data: String,
}Expand description
Audio the model should hear, on a user message: base64 data in a
container named the OpenAI way (ogg/opus, mp3, wav, flac,
aac). Providers without audio input drop it. Debug omits the bytes.
Fields§
§format: String§data: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Audio
impl<'de> Deserialize<'de> for Audio
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 Audio
impl StructuralPartialEq for Audio
Auto Trait Implementations§
impl Forget for Audio
impl Freeze for Audio
impl Move for Audio
impl RefUnwindSafe for Audio
impl Send for Audiowhere
RawVecInner: Send,
impl Sync for Audiowhere
RawVecInner: Sync,
impl Unpin for Audio
impl UnsafeUnpin for Audio
impl UnwindSafe for Audiowhere
RawVecInner: UnwindSafe,
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