pub struct InlineData {
pub mime_type: String,
pub data: String,
pub video_metadata: Option<VideoMetadata>,
}Fields§
§mime_type: StringThe media type of the image or video specified in the data or fileUri fields. Acceptable values include the following:
image/png image/jpeg video/mov video/mpeg video/mp4 video/mpg video/avi video/wmv video/mpegps video/flv
Maximum video length: 2 minutes.
No limit on image resolution.
data: StringThe base64 encoding of the image or video to include inline in the prompt. When including media inline, you must also specify MIMETYPE. size limit: 20MB
video_metadata: Option<VideoMetadata>Trait Implementations§
Source§impl Clone for InlineData
impl Clone for InlineData
Source§fn clone(&self) -> InlineData
fn clone(&self) -> InlineData
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 moreSource§impl Debug for InlineData
impl Debug for InlineData
Source§impl<'de> Deserialize<'de> for InlineData
impl<'de> Deserialize<'de> for InlineData
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 InlineData
impl PartialEq for InlineData
Source§impl Serialize for InlineData
impl Serialize for InlineData
impl StructuralPartialEq for InlineData
Auto Trait Implementations§
impl Freeze for InlineData
impl RefUnwindSafe for InlineData
impl Send for InlineData
impl Sync for InlineData
impl Unpin for InlineData
impl UnwindSafe for InlineData
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