pub enum UserInputAudioReference {
Inline {
url: String,
},
File {
file_id: String,
},
}Expand description
How a UserInput::Audio names its audio: an inline url or a
previously uploaded fileId. Flattened into the variant; untagged, so
exactly one of the two keys is on the wire. Mirrors the v2
AudioReference upstream; the Responses-API twin used by tool outputs is
AudioReference.
Variants§
Trait Implementations§
Source§impl Clone for UserInputAudioReference
impl Clone for UserInputAudioReference
Source§impl Debug for UserInputAudioReference
impl Debug for UserInputAudioReference
Source§impl<'de> Deserialize<'de> for UserInputAudioReference
impl<'de> Deserialize<'de> for UserInputAudioReference
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
Source§impl PartialEq for UserInputAudioReference
impl PartialEq for UserInputAudioReference
Source§impl Serialize for UserInputAudioReference
impl Serialize for UserInputAudioReference
impl StructuralPartialEq for UserInputAudioReference
Auto Trait Implementations§
impl Forget for UserInputAudioReference
impl Freeze for UserInputAudioReference
impl Move for UserInputAudioReference
impl RefUnwindSafe for UserInputAudioReference
impl Send for UserInputAudioReference
impl Sync for UserInputAudioReference
impl Unpin for UserInputAudioReference
impl UnsafeUnpin for UserInputAudioReference
impl UnwindSafe for UserInputAudioReference
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