pub struct WebSearchPreviewArgs { /* private fields */ }
Expand description
Builder for WebSearchPreview
.
Implementations§
Source§impl WebSearchPreviewArgs
impl WebSearchPreviewArgs
Sourcepub fn user_location<VALUE: Into<Location>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn user_location<VALUE: Into<Location>>( &mut self, value: VALUE, ) -> &mut Self
The user’s location.
Sourcepub fn search_context_size<VALUE: Into<WebSearchContextSize>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn search_context_size<VALUE: Into<WebSearchContextSize>>( &mut self, value: VALUE, ) -> &mut Self
High level guidance for the amount of context window space to use for the search.
Sourcepub fn build(&self) -> Result<WebSearchPreview, WebSearchPreviewArgsError>
pub fn build(&self) -> Result<WebSearchPreview, WebSearchPreviewArgsError>
Trait Implementations§
Source§impl Clone for WebSearchPreviewArgs
impl Clone for WebSearchPreviewArgs
Source§fn clone(&self) -> WebSearchPreviewArgs
fn clone(&self) -> WebSearchPreviewArgs
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 moreAuto Trait Implementations§
impl Freeze for WebSearchPreviewArgs
impl RefUnwindSafe for WebSearchPreviewArgs
impl Send for WebSearchPreviewArgs
impl Sync for WebSearchPreviewArgs
impl Unpin for WebSearchPreviewArgs
impl UnwindSafe for WebSearchPreviewArgs
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