pub enum UserInputImageReference {
Inline {
url: String,
},
File {
file_id: String,
},
}Expand description
How a UserInput::Image names its image: an inline url (data URL or
remote 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
ImageReference upstream; the Responses-API twin used by tool outputs is
ImageReference.
Variants§
Trait Implementations§
Source§impl Clone for UserInputImageReference
impl Clone for UserInputImageReference
Source§fn clone(&self) -> UserInputImageReference
fn clone(&self) -> UserInputImageReference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserInputImageReference
impl Debug for UserInputImageReference
Source§impl<'de> Deserialize<'de> for UserInputImageReference
impl<'de> Deserialize<'de> for UserInputImageReference
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 UserInputImageReference
impl PartialEq for UserInputImageReference
Source§impl Serialize for UserInputImageReference
impl Serialize for UserInputImageReference
impl StructuralPartialEq for UserInputImageReference
Auto Trait Implementations§
impl Freeze for UserInputImageReference
impl RefUnwindSafe for UserInputImageReference
impl Send for UserInputImageReference
impl Sync for UserInputImageReference
impl Unpin for UserInputImageReference
impl UnsafeUnpin for UserInputImageReference
impl UnwindSafe for UserInputImageReference
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