pub struct WebSearchApproximateLocationArgs { /* private fields */ }Expand description
Builder for WebSearchApproximateLocation.
Implementations§
Source§impl WebSearchApproximateLocationArgs
impl WebSearchApproximateLocationArgs
Sourcepub fn type<VALUE>(
&mut self,
value: VALUE,
) -> &mut WebSearchApproximateLocationArgswhere
VALUE: Into<WebSearchApproximateLocationType>,
pub fn type<VALUE>(
&mut self,
value: VALUE,
) -> &mut WebSearchApproximateLocationArgswhere
VALUE: Into<WebSearchApproximateLocationType>,
The type of location approximation. Defaults to approximate when omitted in JSON input.
Sourcepub fn city<VALUE>(
&mut self,
value: VALUE,
) -> &mut WebSearchApproximateLocationArgs
pub fn city<VALUE>( &mut self, value: VALUE, ) -> &mut WebSearchApproximateLocationArgs
Free text input for the city of the user, e.g. San Francisco.
Sourcepub fn country<VALUE>(
&mut self,
value: VALUE,
) -> &mut WebSearchApproximateLocationArgs
pub fn country<VALUE>( &mut self, value: VALUE, ) -> &mut WebSearchApproximateLocationArgs
The two-letter ISO country code of the user,
e.g. US.
Sourcepub fn region<VALUE>(
&mut self,
value: VALUE,
) -> &mut WebSearchApproximateLocationArgs
pub fn region<VALUE>( &mut self, value: VALUE, ) -> &mut WebSearchApproximateLocationArgs
Free text input for the region of the user, e.g. California.
Sourcepub fn timezone<VALUE>(
&mut self,
value: VALUE,
) -> &mut WebSearchApproximateLocationArgs
pub fn timezone<VALUE>( &mut self, value: VALUE, ) -> &mut WebSearchApproximateLocationArgs
The IANA timezone of the user, e.g.
America/Los_Angeles.
Sourcepub fn build(&self) -> Result<WebSearchApproximateLocation, OpenAIError>
pub fn build(&self) -> Result<WebSearchApproximateLocation, OpenAIError>
Trait Implementations§
Source§impl Clone for WebSearchApproximateLocationArgs
impl Clone for WebSearchApproximateLocationArgs
Source§fn clone(&self) -> WebSearchApproximateLocationArgs
fn clone(&self) -> WebSearchApproximateLocationArgs
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 Default for WebSearchApproximateLocationArgs
impl Default for WebSearchApproximateLocationArgs
Source§fn default() -> WebSearchApproximateLocationArgs
fn default() -> WebSearchApproximateLocationArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebSearchApproximateLocationArgs
impl RefUnwindSafe for WebSearchApproximateLocationArgs
impl Send for WebSearchApproximateLocationArgs
impl Sync for WebSearchApproximateLocationArgs
impl Unpin for WebSearchApproximateLocationArgs
impl UnsafeUnpin for WebSearchApproximateLocationArgs
impl UnwindSafe for WebSearchApproximateLocationArgs
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