Struct gems::requests::ImageContent
source · pub struct ImageContent {
pub mime_type: String,
pub data: String,
}Expand description
Structure representing the image part of the Gemini request.
Fields§
§mime_type: StringThe MIME type of the image.
data: StringThe actual image data in a base64-encoded string.
Trait Implementations§
source§impl Debug for ImageContent
impl Debug for ImageContent
source§impl<'de> Deserialize<'de> for ImageContent
impl<'de> Deserialize<'de> for ImageContent
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
Auto Trait Implementations§
impl RefUnwindSafe for ImageContent
impl Send for ImageContent
impl Sync for ImageContent
impl Unpin for ImageContent
impl UnwindSafe for ImageContent
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