pub struct WebSearchUserLocation {
pub city: Option<String>,
pub country: Option<String>,
pub region: Option<String>,
pub timezone: Option<String>,
pub location_type: Option<String>,
}Expand description
Approximate user location for the non-preview web_search tool.
Spec: user_location: { city?, country?: ISO2, region?, timezone?: IANA, type?: "approximate" }.
Fields§
§city: Option<String>City name.
country: Option<String>ISO-3166-1 alpha-2 country code (e.g. "US").
region: Option<String>Region / state / province name.
timezone: Option<String>IANA timezone identifier (e.g. "America/Los_Angeles").
location_type: Option<String>Discriminator. Spec only enumerates "approximate".
Trait Implementations§
Source§impl Clone for WebSearchUserLocation
impl Clone for WebSearchUserLocation
Source§fn clone(&self) -> WebSearchUserLocation
fn clone(&self) -> WebSearchUserLocation
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 Debug for WebSearchUserLocation
impl Debug for WebSearchUserLocation
Source§impl Default for WebSearchUserLocation
impl Default for WebSearchUserLocation
Source§fn default() -> WebSearchUserLocation
fn default() -> WebSearchUserLocation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebSearchUserLocation
impl<'de> Deserialize<'de> for WebSearchUserLocation
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 JsonSchema for WebSearchUserLocation
impl JsonSchema for WebSearchUserLocation
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for WebSearchUserLocation
impl RefUnwindSafe for WebSearchUserLocation
impl Send for WebSearchUserLocation
impl Sync for WebSearchUserLocation
impl Unpin for WebSearchUserLocation
impl UnsafeUnpin for WebSearchUserLocation
impl UnwindSafe for WebSearchUserLocation
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