pub struct GeminiGenerateContentResponse {
pub candidates: Vec<GeminiCandidate>,
pub usage_metadata: Option<GeminiUsage>,
}Expand description
Minimal Gemini generateContent response shape used by the adapter.
Fields§
§candidates: Vec<GeminiCandidate>Response candidates.
usage_metadata: Option<GeminiUsage>Provider usage accounting.
Implementations§
Trait Implementations§
Source§impl Clone for GeminiGenerateContentResponse
impl Clone for GeminiGenerateContentResponse
Source§fn clone(&self) -> GeminiGenerateContentResponse
fn clone(&self) -> GeminiGenerateContentResponse
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<'de> Deserialize<'de> for GeminiGenerateContentResponse
impl<'de> Deserialize<'de> for GeminiGenerateContentResponse
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 GeminiGenerateContentResponse
impl PartialEq for GeminiGenerateContentResponse
Source§fn eq(&self, other: &GeminiGenerateContentResponse) -> bool
fn eq(&self, other: &GeminiGenerateContentResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GeminiGenerateContentResponse
impl StructuralPartialEq for GeminiGenerateContentResponse
Auto Trait Implementations§
impl Freeze for GeminiGenerateContentResponse
impl RefUnwindSafe for GeminiGenerateContentResponse
impl Send for GeminiGenerateContentResponse
impl Sync for GeminiGenerateContentResponse
impl Unpin for GeminiGenerateContentResponse
impl UnsafeUnpin for GeminiGenerateContentResponse
impl UnwindSafe for GeminiGenerateContentResponse
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