pub struct ApproximateLocation {
pub country: Option<String>,
pub region: Option<String>,
pub city: Option<String>,
pub timezone: Option<String>,
}
Fields§
§country: Option<String>
The two-letter ISO country code of the user, e.g. US
.
region: Option<String>
Free text input for the region of the user, e.g. California
.
city: Option<String>
Free text input for the city of the user, e.g. San Francisco
.
timezone: Option<String>
The IANA timezone of the user, e.g. America/Los_Angeles
.
Implementations§
Source§impl ApproximateLocation
impl ApproximateLocation
Sourcepub fn builder() -> ApproximateLocationBuilder<((), (), (), ())>
pub fn builder() -> ApproximateLocationBuilder<((), (), (), ())>
Create a builder for building ApproximateLocation
.
On the builder, call .country(...)
(optional), .region(...)
(optional), .city(...)
(optional), .timezone(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ApproximateLocation
.
Trait Implementations§
Source§impl Clone for ApproximateLocation
impl Clone for ApproximateLocation
Source§fn clone(&self) -> ApproximateLocation
fn clone(&self) -> ApproximateLocation
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 moreSource§impl Debug for ApproximateLocation
impl Debug for ApproximateLocation
Source§impl Default for ApproximateLocation
impl Default for ApproximateLocation
Source§fn default() -> ApproximateLocation
fn default() -> ApproximateLocation
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for ApproximateLocation
impl PartialEq for ApproximateLocation
Source§impl Serialize for ApproximateLocation
impl Serialize for ApproximateLocation
impl StructuralPartialEq for ApproximateLocation
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