pub struct GroundingRequest {
pub query: String,
pub api_key: Option<String>,
pub max_results: Option<usize>,
pub category: Option<String>,
pub time_range: Option<String>,
}Expand description
POST /v1/grounding - AI grounding request; credentials via headers or the JSON body.
Fields§
§query: String§api_key: Option<String>§max_results: Option<usize>§category: Option<String>§time_range: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for GroundingRequest
impl<'de> Deserialize<'de> for GroundingRequest
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 Freeze for GroundingRequest
impl RefUnwindSafe for GroundingRequest
impl Send for GroundingRequest
impl Sync for GroundingRequest
impl Unpin for GroundingRequest
impl UnsafeUnpin for GroundingRequest
impl UnwindSafe for GroundingRequest
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