pub struct FileDataRef {
pub mime_type: String,
pub file_uri: String,
}Expand description
Core primitive types for building requests and parsing responses Reference to an external file by URI, used in Gemini wire format.
§Example
use adk_gemini::FileDataRef;
let file_ref = FileDataRef {
mime_type: "application/pdf".to_string(),
file_uri: "gs://my-bucket/report.pdf".to_string(),
};Fields§
§mime_type: String§file_uri: StringTrait Implementations§
Source§impl Clone for FileDataRef
impl Clone for FileDataRef
Source§fn clone(&self) -> FileDataRef
fn clone(&self) -> FileDataRef
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 FileDataRef
impl Debug for FileDataRef
Source§impl<'de> Deserialize<'de> for FileDataRef
impl<'de> Deserialize<'de> for FileDataRef
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 FileDataRef
impl PartialEq for FileDataRef
Source§fn eq(&self, other: &FileDataRef) -> bool
fn eq(&self, other: &FileDataRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FileDataRef
impl Serialize for FileDataRef
impl StructuralPartialEq for FileDataRef
Auto Trait Implementations§
impl Freeze for FileDataRef
impl RefUnwindSafe for FileDataRef
impl Send for FileDataRef
impl Sync for FileDataRef
impl Unpin for FileDataRef
impl UnsafeUnpin for FileDataRef
impl UnwindSafe for FileDataRef
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