[−][src]Struct ipgeolocate::Locator
Fields
ip: String
latitude: String
longitude: String
city: String
region: String
country_code: String
country: String
timezone_gmt: String
timezone: String
iptype: String
Implementations
impl Locator
[src]
pub fn get_ipv4(ip: Ipv4Addr) -> Result<Self, String>
[src]
pub fn get_ipv6(ip: Ipv6Addr) -> Result<Self, String>
[src]
Gets the Locator information for Ipv4Addr
.
pub fn get(ip: &str) -> Result<Self, String>
[src]
Gets the Locator information for Ipv6Addr
.
Auto Trait Implementations
impl RefUnwindSafe for Locator
impl Send for Locator
impl Sync for Locator
impl Unpin for Locator
impl UnwindSafe for Locator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,