pub enum ImageModelFile {
File {
media_type: String,
data: ImageModelFileData,
provider_metadata: Option<ProviderMetadata>,
},
Url {
url: String,
provider_metadata: Option<ProviderMetadata>,
},
}Expand description
Represents a file used in an image model call.
Variants§
Trait Implementations§
Source§impl Clone for ImageModelFile
impl Clone for ImageModelFile
Source§fn clone(&self) -> ImageModelFile
fn clone(&self) -> ImageModelFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ImageModelFile
impl RefUnwindSafe for ImageModelFile
impl Send for ImageModelFile
impl Sync for ImageModelFile
impl Unpin for ImageModelFile
impl UnsafeUnpin for ImageModelFile
impl UnwindSafe for ImageModelFile
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