pub struct GeolocationResponse {
pub ip: String,
pub country: String,
pub country_code: String,
pub city: String,
pub region: String,
pub postal_code: Option<String>,
pub latitude: Option<f64>,
pub longitude: Option<f64>,
pub timezone: String,
pub accuracy_radius: Option<i64>,
pub locked: Vec<String>,
pub plan_required: Option<String>,
}Expand description
Response of GET /v1/geo/{ip}. Precise-location fields are null on the Free plan.
Fields§
§ip: String§country: String§country_code: String§city: String§region: String§postal_code: Option<String>§latitude: Option<f64>§longitude: Option<f64>§timezone: String§accuracy_radius: Option<i64>§locked: Vec<String>§plan_required: Option<String>Trait Implementations§
Source§impl Clone for GeolocationResponse
impl Clone for GeolocationResponse
Source§impl Debug for GeolocationResponse
impl Debug for GeolocationResponse
Source§impl Default for GeolocationResponse
impl Default for GeolocationResponse
Source§impl<'de> Deserialize<'de> for GeolocationResponsewhere
GeolocationResponse: Default,
impl<'de> Deserialize<'de> for GeolocationResponsewhere
GeolocationResponse: Default,
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 GeolocationResponse
impl PartialEq for GeolocationResponse
Source§impl Serialize for GeolocationResponse
impl Serialize for GeolocationResponse
impl StructuralPartialEq for GeolocationResponse
Auto Trait Implementations§
impl Freeze for GeolocationResponse
impl RefUnwindSafe for GeolocationResponse
impl Send for GeolocationResponse
impl Sync for GeolocationResponse
impl Unpin for GeolocationResponse
impl UnsafeUnpin for GeolocationResponse
impl UnwindSafe for GeolocationResponse
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