pub struct ApproximateLocation {
pub city: Option<String>,
pub country: Option<String>,
pub region: Option<String>,
pub timezone: Option<String>,
pub _type: String,
}
Expand description
§on openapi.yaml
ApproximateLocation:
properties:
type:
type: string
enum:
- approximate
description: The type of location approximation. Always `approximate`.
default: approximate
x-stainless-const: true
country:
anyOf:
- type: string
description: The two-letter [ISO country
code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user,
e.g. `US`.
- type: "null"
region:
anyOf:
- type: string
description: Free text input for the region of the user, e.g. `California`.
- type: "null"
city:
anyOf:
- type: string
description: Free text input for the city of the user, e.g. `San Francisco`.
- type: "null"
timezone:
anyOf:
- type: string
description: The [IANA
timezone](https://timeapi.io/documentation/iana-timezones) of
the user, e.g. `America/Los_Angeles`.
- type: "null"
type: object
required:
- type
Fields§
§city: Option<String>
§country: Option<String>
§region: Option<String>
§timezone: Option<String>
§_type: String
The type of location approximation. Always approximate
.
Trait Implementations§
Source§impl Debug for ApproximateLocation
impl Debug for ApproximateLocation
Source§impl<'de> Deserialize<'de> for ApproximateLocation
impl<'de> Deserialize<'de> for ApproximateLocation
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 ApproximateLocation
impl RefUnwindSafe for ApproximateLocation
impl Send for ApproximateLocation
impl Sync for ApproximateLocation
impl Unpin for ApproximateLocation
impl UnwindSafe for ApproximateLocation
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