pub struct ResponseMetadata {
pub safety_ratings: Option<Vec<SafetyRating>>,
pub grounding: Option<GroundingMetadata>,
}Expand description
Provider-specific metadata returned with responses.
Fields§
§safety_ratings: Option<Vec<SafetyRating>>Content safety ratings (Gemini).
grounding: Option<GroundingMetadata>Grounding/citation metadata (Gemini).
Trait Implementations§
Source§impl Clone for ResponseMetadata
impl Clone for ResponseMetadata
Source§fn clone(&self) -> ResponseMetadata
fn clone(&self) -> ResponseMetadata
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 ResponseMetadata
impl Debug for ResponseMetadata
Source§impl Default for ResponseMetadata
impl Default for ResponseMetadata
Source§fn default() -> ResponseMetadata
fn default() -> ResponseMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResponseMetadata
impl PartialEq for ResponseMetadata
impl StructuralPartialEq for ResponseMetadata
Auto Trait Implementations§
impl Freeze for ResponseMetadata
impl RefUnwindSafe for ResponseMetadata
impl Send for ResponseMetadata
impl Sync for ResponseMetadata
impl Unpin for ResponseMetadata
impl UnwindSafe for ResponseMetadata
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